CriticalVulnerability
CVE-2026-12481: keras-team/keras Lambda layer code execution through unsafe deserialization
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-12481
- Published
- Record updated
- Affected
- keras < 3.12.3, fixed in 3.12.3
- keras >= 3.13.0, < 3.15.0, fixed in 3.15.0
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.7%
Summary
CVE-2026-12481 affects keras-team/keras version 3.14.0. The _raise_for_lambda_deserialization() function fails to enforce the safe-mode guard when safe_mode is None, the default outside a SafeModeScope context, because it conflates None with False. This lets attacker-controlled marshal bytecode be deserialized through keras.layers.deserialize(config), keras.models.clone_model(model) and direct Lambda.from_config(config) calls, enabling arbitrary OS-level code execution in the server or user process.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- kerasPyPINo LLM dependency detected · 6 tracked dependents
Related items
- MediumCVE-2026-108759: mistral.rs sandbox escape via symlinks in mistralrs-code-execSimilar attack · NVD/CVE Database
- MediumCVE-2026-108575: BerriAI LiteLLM improper authorization in secret resolution via api_keySimilar attack · NVD/CVE Database
- MediumCVE-2026-108574: BerriAI LiteLLM authorization bypass in session spend log view via session_idSimilar attack · NVD/CVE Database
- MediumCVE-2026-108670: JeecgBoot missing authorization in AiragPromptsControllerSimilar attack · NVD/CVE Database
- MediumCVE-2026-108600: open-multi-agent link following flaw in file_write tool sandboxSimilar attack · NVD/CVE Database