CVE-2026-1462: CWE-502 Deserialization of Untrusted Data in keras-team keras-team/keras
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.
AI Analysis
Technical Summary
The vulnerability in keras 3.13.0's TFSMLayer class permits deserialization of attacker-controlled TensorFlow SavedModels despite safe_mode=True, which is intended to prevent unsafe code execution. This occurs because the deserialization process unconditionally loads external SavedModels and does not validate file paths or configurations in from_config(), enabling arbitrary code execution during model inference. The CVSS 3.0 score is 8.8 (high severity) with network attack vector, low attack complexity, no privileges required, user interaction needed, and high impact on confidentiality, integrity, and availability. Vendor advisories from Red Hat acknowledge the issue but do not currently provide a patch or remediation guidance.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary code on the victim's system with the privileges of the user running the keras model inference. This compromises confidentiality, integrity, and availability of the affected system. The vulnerability bypasses the intended safe_mode security mechanism, increasing risk during model deserialization.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should avoid loading untrusted .keras models or TensorFlow SavedModels. Monitor vendor advisories, especially from keras-team and Red Hat, for updates on patches or mitigations.
CVE-2026-1462: CWE-502 Deserialization of Untrusted Data in keras-team keras-team/keras
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 v3.0
Score 8.8high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in keras 3.13.0's TFSMLayer class permits deserialization of attacker-controlled TensorFlow SavedModels despite safe_mode=True, which is intended to prevent unsafe code execution. This occurs because the deserialization process unconditionally loads external SavedModels and does not validate file paths or configurations in from_config(), enabling arbitrary code execution during model inference. The CVSS 3.0 score is 8.8 (high severity) with network attack vector, low attack complexity, no privileges required, user interaction needed, and high impact on confidentiality, integrity, and availability. Vendor advisories from Red Hat acknowledge the issue but do not currently provide a patch or remediation guidance.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary code on the victim's system with the privileges of the user running the keras model inference. This compromises confidentiality, integrity, and availability of the affected system. The vulnerability bypasses the intended safe_mode security mechanism, increasing risk during model deserialization.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should avoid loading untrusted .keras models or TensorFlow SavedModels. Monitor vendor advisories, especially from keras-team and Red Hat, for updates on patches or mitigations.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- @huntr_ai
- Date Reserved
- 2026-01-27T04:14:51.848Z
- Cvss Version
- 3.0
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-1462","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:24977","vendor":"Red Hat"}]
Threat ID: 69dd057082d89c981f016d7f
Added to database: 04/13/2026, 15:02:08 UTC
Last enriched: 07/18/2026, 14:37:46 UTC
Last updated: 07/31/2026, 19:22:57 UTC
Views: 154
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.