CVE-2026-12484: CWE-502 Deserialization of Untrusted Data in keras-team keras-team/keras
Keras version 3.15.0 contains a high-severity vulnerability (CVE-2026-12484) involving 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 and does not enforce safe deserialization unless within a SafeModeScope context. This can lead to arbitrary code execution if untrusted Keras layer configurations are processed. No patch or official remediation has been confirmed yet.
AI Analysis
Technical Summary
CVE-2026-12484 is a deserialization vulnerability in keras-team/keras version 3.15.0 where the method keras.layers.TorchModuleWrapper.from_config invokes torch.load with weights_only=False without requiring explicit unsafe opt-in. When called outside a SafeModeScope(True) context, safe deserialization is not enforced, allowing unsafe deserialization of attacker-controlled PyTorch pickle data. This can lead to arbitrary code execution if untrusted data is processed. The vulnerability is due to lack of enforced safe deserialization by default in this method.
Potential Impact
An attacker who can supply untrusted Keras layer configurations to the vulnerable from_config method may achieve arbitrary code execution due to unsafe deserialization of PyTorch pickle data. This impacts confidentiality, integrity, and availability of affected systems. The CVSS 3.0 score is 7.8 (high), reflecting local attack vector, low 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 an official fix is available, avoid processing untrusted Keras layer configurations with the from_config method or ensure that calls occur within a SafeModeScope(True) context to enforce safe deserialization. Do not disable safe mode or bypass safe deserialization checks.
CVE-2026-12484: CWE-502 Deserialization of Untrusted Data in keras-team keras-team/keras
Description
Keras version 3.15.0 contains a high-severity vulnerability (CVE-2026-12484) involving 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 and does not enforce safe deserialization unless within a SafeModeScope context. This can lead to arbitrary code execution if untrusted Keras layer configurations are processed. No patch or official remediation has been confirmed yet.
CVSS v3.0
Score 7.8high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-12484 is a deserialization vulnerability in keras-team/keras version 3.15.0 where the method keras.layers.TorchModuleWrapper.from_config invokes torch.load with weights_only=False without requiring explicit unsafe opt-in. When called outside a SafeModeScope(True) context, safe deserialization is not enforced, allowing unsafe deserialization of attacker-controlled PyTorch pickle data. This can lead to arbitrary code execution if untrusted data is processed. The vulnerability is due to lack of enforced safe deserialization by default in this method.
Potential Impact
An attacker who can supply untrusted Keras layer configurations to the vulnerable from_config method may achieve arbitrary code execution due to unsafe deserialization of PyTorch pickle data. This impacts confidentiality, integrity, and availability of affected systems. The CVSS 3.0 score is 7.8 (high), reflecting local attack vector, low 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 an official fix is available, avoid processing untrusted Keras layer configurations with the from_config method or ensure that calls occur within a SafeModeScope(True) context to enforce safe deserialization. Do not disable safe mode or bypass safe deserialization checks.
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: 07/19/2026, 20:26:39 UTC
Last updated: 07/20/2026, 11:30:02 UTC
Views: 40
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.