{"id":"CVE-2026-1462","aliases":["CVE-2026-1462","GHSA-4f3f-g24h-fr8m","PYSEC-2026-2547"],"related":[],"kind":"vulnerability","state":"published","title":"Safe Mode Bypass in keras-team/keras","summary":"A vulnerability in the `TFSMLayer` class of the `keras` package, version 3.13.0, allows attacker-controlled TensorFlow SavedModels to be loaded during deserialization of `.keras` models, even when `safe_mode=True`. This bypasses the security guarantees of `safe_mode` and enables arbitrary attacker-controlled code execution during model inference under the victim's privileges. The issue arises due to the unconditional loading of external SavedModels, serialization of attacker-controlled file paths, and the lack of validation in the `from_config()` method.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A vulnerability in the `TFSMLayer` class of the `keras` package, version 3.13.0, allows attacker-controlled TensorFlow SavedModels to be loaded during deserialization of `.keras` models, even when `safe_mode=True`. This bypasses the security guarantees of `safe_mode` and enables arbitrary attacker-controlled code execution during model inference under the victim's privileges. The issue arises due to the unconditional loading of external SavedModels, serialization of attacker-controlled file paths, and the lack of validation in the `from_config()` method.","source":"cvelist"}],"published":"2026-04-13T14:55:28.649Z","modified":"2026-09-10T03:51:00.954Z","severity":{"scorer":"redhat-SADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"redhat-SADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-502"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"3.13.2","status":"affected"}],"vendor":"keras-team","product":"keras-team/keras","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1780394782","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift AI 2.25","package":"rhoai/odh-modelmesh-runtime-adapter-rhel9","cpe":"cpe:/a:redhat:openshift_ai:2.25::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1782471734","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.3","package":"rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai:3.3::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1782471879","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.3","package":"rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai:3.3::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1782471730","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.3","package":"rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai:3.3::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1782471835","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.3","package":"rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9","cpe":"cpe:/a:redhat:openshift_ai:3.3::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-kserve-agent-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-kserve-controller-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-kserve-router-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-kserve-storage-initializer-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-modelmesh-runtime-adapter-rhel8","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.13.2"}],"ecosystem":"PyPI","package":"keras","purl":"pkg:pypi/keras","source":"ghsa"},{"ranges":[{"status":"affected","version":"3.13.0"}],"vendor":"keras","product":"keras","cpe":"cpe:2.3:a:keras:keras:3.13.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"2.25","fixed":"2.25.7"}],"vendor":"redhat","product":"openshift_ai","cpe":"cpe:2.3:a:redhat:openshift_ai:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.13.2"}],"ecosystem":"PyPI","package":"keras","purl":"pkg:pypi/keras","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/7e78d6f1-6977-4300-b595-e81bdbda331c","tags":["exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/keras-team/keras/commit/b6773d3decaef1b05d8e794458e148cb362f163f","tags":["patch","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-1462","tags":["third-party-advisory","vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2457856","tags":["issue-tracking","third-party-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-1462.json","tags":["third-party-advisory","x-sadp-csaf-vex"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:24977","tags":["third-party-advisory","vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:37275","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-1462","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/keras-team/keras/pull/22035","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/keras-team/keras","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/keras","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-4f3f-g24h-fr8m","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-04-13T18:53:01.058Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-1462","url":"https://www.cve.org/CVERecord?id=CVE-2026-1462","licence":"CVE Terms of Use","modified":"2026-07-15T01:21:47.957Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4f3f-g24h-fr8m","url":"https://github.com/advisories/GHSA-4f3f-g24h-fr8m","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:00.954Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-1462","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-1462","licence":"Public domain","modified":"2026-07-15T02:18:14.727Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2547","url":"https://osv.dev/vulnerability/PYSEC-2026-2547","licence":"CC-BY-4.0","modified":"2026-07-13T16:32:00.924Z"}],"updatedAt":"2026-11-25T22:59:18.617Z","epss":{"score":0.00429,"percentile":0.39039,"date":"2026-12-01T12:00:22.000Z"}}