High severity · published Apr 13, 2026
CVE-2026-1462
Safe Mode Bypass in keras-team/keras
7.8
CVSS
0.4%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 35% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
KE
keras-team/keras · keras-team
before 3.13.2 · source: vendor
KE
Keras · Keras
3.13.0 · source: NVD
OA
Openshift AI · Redhat
2.25 before 2.25.7 · source: NVD
RH
Red Hat OpenShift AI (RHOAI) · Red Hat
All versions, or not specified · source: CISA
RH
Red Hat OpenShift AI 2.25 · Red Hat
All versions, or not specified · source: CISA
RH
Red Hat OpenShift AI 3.3 · Red Hat
All versions, or not specified · source: CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-1462
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-1462
Patch
https://github.com/keras-team/keras/commit/b6773d3decaef1b05d8e794458e148cb362f163f
Exploit
https://huntr.com/bounties/7e78d6f1-6977-4300-b595-e81bdbda331c
Third Party Advisory
https://access.redhat.com/errata/RHSA-2026:24977
access.redhat.com
https://access.redhat.com/errata/RHSA-2026:37275
Third Party Advisory
https://access.redhat.com/security/cve/CVE-2026-1462
Issue Tracking
https://bugzilla.redhat.com/show_bug.cgi?id=2457856
More from keras-team/keras
9.8
CVE-2026-12481
Deserialization of Untrusted Data in keras-team/keras
8.1
CVE-2026-11816
Path Traversal in keras-team/keras
7.8
CVE-2026-12484
Unsafe Deserialization in keras.layers.TorchModuleWrapper.from_config
6.5
CVE-2026-9335
Improper Handling of HDF5 ExternalLinks in keras-team/keras
6.5
CVE-2026-12482
Path Traversal via Symlink Name Validation Bypass in keras-team/keras
