CVE-2026-12484: CWE-502 Deserialization of Untrusted Data in keras-team keras-team/keras
CVE-2026-12484 is a high-severity vulnerability in keras-team/keras version 3.15.0 that allows unsafe deserialization of attacker-controlled PyTorch pickle data via the public method keras.layers.TorchModuleWrapper.from_config. This method calls torch.load without requiring an explicit unsafe opt-in or enforcing safe deserialization, potentially leading to arbitrary code execution if untrusted Keras layer configurations are processed. The vulnerability exists because safe deserialization is only enforced when explicitly guarded by Keras safe mode, which is not the default behavior.
AI Analysis
Technical Summary
The vulnerability in keras-team/keras version 3.15.0 involves the unsafe deserialization of PyTorch pickle data through the public method keras.layers.TorchModuleWrapper.from_config. This method invokes torch.load with weights_only=False without requiring an explicit unsafe opt-in parameter such as safe_mode=False. When this method is called outside a SafeModeScope(True) context, the absence of an ambient safe mode state allows unsafe deserialization by default. This can lead to arbitrary code execution if untrusted Keras layer configurations are deserialized using this method. The root cause is the lack of enforced safe deserialization practices unless explicitly enabled by Keras safe mode.
Potential Impact
Successful exploitation of this vulnerability can result in arbitrary code execution due to unsafe deserialization of attacker-controlled data. This impacts confidentiality, integrity, and availability of the affected system. The CVSS score of 7.8 reflects high severity with local attack vector, low attack complexity, no privileges required, user interaction required, unchanged scope, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid processing untrusted Keras layer configurations with the TorchModuleWrapper.from_config method or ensure that calls to this method occur within a SafeModeScope(True) context to enforce safe deserialization. Monitor the official keras-team advisories for updates and patches addressing this issue.
CVE-2026-12484: CWE-502 Deserialization of Untrusted Data in keras-team keras-team/keras
Description
CVE-2026-12484 is a high-severity vulnerability in keras-team/keras version 3.15.0 that allows unsafe deserialization of attacker-controlled PyTorch pickle data via the public method keras.layers.TorchModuleWrapper.from_config. This method calls torch.load without requiring an explicit unsafe opt-in or enforcing safe deserialization, potentially leading to arbitrary code execution if untrusted Keras layer configurations are processed. The vulnerability exists because safe deserialization is only enforced when explicitly guarded by Keras safe mode, which is not the default behavior.
CVSS v3.0
Score 7.8high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in keras-team/keras version 3.15.0 involves the unsafe deserialization of PyTorch pickle data through the public method keras.layers.TorchModuleWrapper.from_config. This method invokes torch.load with weights_only=False without requiring an explicit unsafe opt-in parameter such as safe_mode=False. When this method is called outside a SafeModeScope(True) context, the absence of an ambient safe mode state allows unsafe deserialization by default. This can lead to arbitrary code execution if untrusted Keras layer configurations are deserialized using this method. The root cause is the lack of enforced safe deserialization practices unless explicitly enabled by Keras safe mode.
Potential Impact
Successful exploitation of this vulnerability can result in arbitrary code execution due to unsafe deserialization of attacker-controlled data. This impacts confidentiality, integrity, and availability of the affected system. The CVSS score of 7.8 reflects high severity with local attack vector, low attack complexity, no privileges required, user interaction required, unchanged scope, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid processing untrusted Keras layer configurations with the TorchModuleWrapper.from_config method or ensure that calls to this method occur within a SafeModeScope(True) context to enforce safe deserialization. Monitor the official keras-team advisories for updates and patches addressing this issue.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- @huntr_ai
- Date Reserved
- 2026-06-17T02:52:42.641Z
- Cvss Version
- 3.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a5d2faf2a4a8d5989204cc7
Added to database: 07/19/2026, 20:12:31 UTC
Last enriched: 08/08/2026, 15:11:49 UTC
Last updated: 08/18/2026, 10:54:21 UTC
Views: 147
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.
External Links
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.