{"id":"CVE-2026-1462","published":"2026-04-13T14:55:28Z","modified":"2026-07-15T01:21:47Z","title":"Safe Mode Bypass in keras-team/keras","vendor":"keras-team","product":"keras-team/keras","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0042,"percentile":0.3716,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://huntr.com/bounties/7e78d6f1-6977-4300-b595-e81bdbda331c","tags":[]},{"url":"https://github.com/keras-team/keras/commit/b6773d3decaef1b05d8e794458e148cb362f163f","tags":[]},{"url":"https://access.redhat.com/security/cve/CVE-2026-1462","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2457856","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-1462.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:24977","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:37275","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":13.6,"factors":[{"name":"EPSS percentile","points":7.43},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"keras-team","affectedVersions":[{"vendor":"keras-team","product":"keras-team/keras","versions":[">= unspecified, < 3.13.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-04-13T18:53:01.058651Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"keras","vulnerableRanges":["<3.13.2"],"patched":["3.13.2"],"from":["GHSA-4f3f-g24h-fr8m","PYSEC-2026-2547"],"provenance":"source"}],"summary":{"text":"The flaw is a Safe Mode bypass in the TFSMLayer class of the keras package (keras-team/keras, version 3.13.0), which lets attacker-controlled TensorFlow SavedModels be loaded during deserialization of .keras models even when safe_mode=True is set. An attacker who can supply such a model can achieve arbitrary code execution during model inference with the victim's privileges, and the attack requires that the victim user interacts with the crafted model (for example by loading and running it), with no authentication needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:39:43Z"},"euvd":{"id":"EUVD-2026-21970","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-keras-team-keras-cve-2025-1550","parents":[{"from":"CVE-2026-0897","to":"CVE-2026-1462","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:keras","fromFixed":"3.13.1","toFixed":"3.13.2","daysApart":88},{"kind":"same-code","provenance":"machine","files":["keras/src/export/tfsm_layer.py"],"commits":["https://github.com/keras-team/keras/commit/7360d4f0d764fbb1fa9c6408fe53da41974dd4f6","https://github.com/keras-team/keras/commit/f704c887bf459b42769bfc8a9182f838009afddb","https://github.com/keras-team/keras/commit/b6773d3decaef1b05d8e794458e148cb362f163f"],"basis":"shared function","functions":["get_config"]}]}],"packageHistory":[{"cve":"CVE-2025-12058","published":"2025-10-29","fixed":"3.12.0","kev":false},{"cve":"CVE-2025-12060","published":"2025-10-30","fixed":"3.12.0","kev":false},{"cve":"CVE-2026-0897","published":"2026-01-15","fixed":"3.13.2","kev":false},{"cve":"CVE-2026-1462","published":"2026-04-13","fixed":"3.13.2","kev":false},{"cve":"CVE-2026-1669","published":"2026-02-11","fixed":"3.13.2","kev":false},{"cve":"CVE-2026-11816","published":"2026-06-11","fixed":"3.14.0","kev":false,"link":{"from":"CVE-2026-1462","to":"CVE-2026-11816","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:keras","fromFixed":"3.13.2","toFixed":"3.14.0","daysApart":59}]}},{"cve":"CVE-2026-12479","published":"2026-06-22","fixed":"3.15.0","kev":false}],"package":"PyPI:keras"}}