Deserialization in Keras
CVE-2026-1462
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.
Vulnerability class: Insecure Deserialization
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.004 (33.3th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 33rd percentile — 33.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.004 · change: 0.000
Affected products
- Keras — versions 3.13.0
- Keras-Team Keras-Team/keras — versions unspecified
- Red Hat Openshift Ai
Weakness classification (CWE)
References
- huntr.com/bounties/7e78d6f1-6977-4300-b595-e81bdbda331c (Exploit, Third Party Advisory)
- github.com/keras-team/keras/commit/b6773d3decaef1b05d8e794458e148cb362f163f (Patch)
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Third Party Advisory)
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Third Party Advisory)
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Third Party Advisory, Issue Tracking)
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Third Party Advisory)
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
Frequently asked questions
- What is CVE-2026-1462?
- CVE-2026-1462 is a high-severity vulnerability in Keras, classified under Deserialization of Untrusted Data. CVSS score: 7.8/10. Published 2026-04-13.
- How severe is CVE-2026-1462?
- High severity. CVSS v3 base score is 7.8 out of 10.