CVE-2026-12481: CWE-502 Deserialization of Untrusted Data in keras-team keras-team/keras
CVE-2026-12481 is a high-severity vulnerability in keras-team/keras version 3.14.0 involving unsafe deserialization in the Lambda layer. The issue arises because the _raise_for_lambda_deserialization() function does not properly enforce safe-mode when safe_mode is None, which is the default outside a SafeModeScope context. This allows attacker-controlled marshal bytecode to be deserialized, potentially leading to arbitrary OS-level code execution. The vulnerability affects calls to keras.layers.deserialize(config), keras.models.clone_model(model), and Lambda.from_config(config) without SafeModeScope(True). The product is a cloud service, and a patch is available. No known exploits are reported in the wild.
AI Analysis
Technical Summary
This vulnerability in keras-team/keras version 3.14.0 is due to improper handling of deserialization in the Lambda layer. Specifically, the _raise_for_lambda_deserialization() function conflates a None value for safe_mode (default) with False (explicitly disabled), bypassing the safe-mode guard. This logic flaw allows attacker-controlled marshal bytecode to be deserialized when calling keras.layers.deserialize(config), keras.models.clone_model(model), or Lambda.from_config(config) outside of a SafeModeScope(True) context. Successful exploitation can lead to arbitrary OS-level code execution in the server or user process context. The vulnerability is tracked as CWE-502 (Deserialization of Untrusted Data) and has a CVSS v3.0 score of 8.8 (high severity). The product is a cloud service, and a patch is available though specific patch details are not provided.
Potential Impact
Exploitation of this vulnerability can result in arbitrary code execution at the OS level within the context of the server or user process running keras-team/keras. This can lead to full compromise of the affected system. The vulnerability is remotely exploitable without privileges and requires user interaction. The confidentiality, integrity, and availability of the system are all rated high impact.
Mitigation Recommendations
Since this is a cloud-hosted service, the vendor manages remediation server-side. Users should consult the vendor advisory for confirmation of patch deployment and ensure they are using a version with the fix applied. Avoid invoking Lambda.from_config(config) or related deserialization functions outside of a SafeModeScope(True) context until patched. Monitor vendor communications for updates. Patch status is confirmed as available, but specific patch versions are not listed; check the vendor advisory for current remediation guidance.
CVE-2026-12481: CWE-502 Deserialization of Untrusted Data in keras-team keras-team/keras
Description
CVE-2026-12481 is a high-severity vulnerability in keras-team/keras version 3.14.0 involving unsafe deserialization in the Lambda layer. The issue arises because the _raise_for_lambda_deserialization() function does not properly enforce safe-mode when safe_mode is None, which is the default outside a SafeModeScope context. This allows attacker-controlled marshal bytecode to be deserialized, potentially leading to arbitrary OS-level code execution. The vulnerability affects calls to keras.layers.deserialize(config), keras.models.clone_model(model), and Lambda.from_config(config) without SafeModeScope(True). The product is a cloud service, and a patch is available. No known exploits are reported in the wild.
CVSS v3.0
Score 8.8high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in keras-team/keras version 3.14.0 is due to improper handling of deserialization in the Lambda layer. Specifically, the _raise_for_lambda_deserialization() function conflates a None value for safe_mode (default) with False (explicitly disabled), bypassing the safe-mode guard. This logic flaw allows attacker-controlled marshal bytecode to be deserialized when calling keras.layers.deserialize(config), keras.models.clone_model(model), or Lambda.from_config(config) outside of a SafeModeScope(True) context. Successful exploitation can lead to arbitrary OS-level code execution in the server or user process context. The vulnerability is tracked as CWE-502 (Deserialization of Untrusted Data) and has a CVSS v3.0 score of 8.8 (high severity). The product is a cloud service, and a patch is available though specific patch details are not provided.
Potential Impact
Exploitation of this vulnerability can result in arbitrary code execution at the OS level within the context of the server or user process running keras-team/keras. This can lead to full compromise of the affected system. The vulnerability is remotely exploitable without privileges and requires user interaction. The confidentiality, integrity, and availability of the system are all rated high impact.
Mitigation Recommendations
Since this is a cloud-hosted service, the vendor manages remediation server-side. Users should consult the vendor advisory for confirmation of patch deployment and ensure they are using a version with the fix applied. Avoid invoking Lambda.from_config(config) or related deserialization functions outside of a SafeModeScope(True) context until patched. Monitor vendor communications for updates. Patch status is confirmed as available, but specific patch versions are not listed; check the vendor advisory for current remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- @huntr_ai
- Date Reserved
- 2026-06-17T01:06:48.759Z
- Cvss Version
- 3.0
- State
- PUBLISHED
- Remediation Level
- null
- Is Cloud Service
- true
Threat ID: 6a4820fb27e9c79719acbf00
Added to database: 07/03/2026, 20:52:11 UTC
Last enriched: 08/08/2026, 15:12:06 UTC
Last updated: 08/17/2026, 00:41:09 UTC
Views: 119
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.