CVE-2026-12481: Vulnerability in Keras

Critical. A vulnerability in keras-team/keras version 3.14.0 allows for arbitrary code execution due to improper handling of deserialization in the Lambda layer. Specifically, the _raise_for_lambda_deserialization() function fails to enforce the safe-mode guard when safe_mode is set to None, which is the default value when from_config() is called outside of a SafeModeScope context. This logic error conflates None...

PyPI, CWE-502

Exploitation
None confirmed
Severity
9.8 of 10
Attack likelihood
0.5 % in 30 days
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-5gwj-m78q-7pq3
EU ID
EUVD-2026-41600
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-502
Published
3 Jul 2026
Last change
25 Oct 2026
Likelihood rank
Higher than 42 % of all rated vulnerabilities
Analysis status
Analyzed
Ecosystem
PyPI

Affected products

Affected versions and the first fixed release

  • Keras Version 3.14.0. No fixed version recorded

Affected packages

Vulnerable version ranges and fixed releases

  • keras PyPI, Affected before 3.12.3. Fixed in 3.12.3

Patches and fixes

Updates, commits and release notes

Exploit code

Public exploits and proofs of concept, handle with care

Related