CVEFinder.io

CVE-2026-12481

β›” critical
πŸ” Scan for this CVE
Summary

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` (unset/default-deny) with `False` (explicitly disabled), bypassing the guard an

Description

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` (unset/default-deny) with `False` (explicitly disabled), bypassing the guard and allowing attacker-controlled `marshal` bytecode to be deserialized. Affected call sites include `keras.layers.deserialize(config)`, `keras.models.clone_model(model)`, and any direct invocation of `Lambda.from_config(config)` without an enclosing `SafeModeScope(True)`. This vulnerability can be exploited to achieve arbitrary OS-level code execution in the context of the server or user process.

CVSS Score
9.8
Critical
EPSS Score
0.4
Exploit Probability
Published Date
2026-07-03
First Seen: 2026-07-04
πŸ“Š Relative Risk Intelligence

This CVE is Very High Risk - more severe than 90.5% of all 338,292 vulnerabilities in our database.

#31,990
Top 10% most severe
Severity Percentile
🎯 CISA SSVC Assessment Updated: Jul 6, 2026
πŸ” Exploitation Status
Poc
Proof-of-concept available
βš™οΈ Automatable
NO
Requires human interaction
πŸ’₯ Technical Impact
Total
Complete system compromise possible
SSVC data provided by CISA
Last Modified 2026-07-08
CVSS Vector 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CWE IDs (Weakness Types)

πŸ“¦ Affected Products 1

πŸ”— References 1

πŸ”— Related CVEs 6

CVE ID Severity CVSS EPSS Summary Published
CVE-2026-11816 ⚠️ high 8.1 0.6 Keras versions prior to 3.14.0 are vulnerable to a path traversal issue in the archive extraction utilities located in `... 2026-06-11
CVE-2026-1462 ⚠️ high 7.8 0.4 A vulnerability in the `TFSMLayer` class of the `keras` package, version 3.13.0, allows attacker-controlled TensorFlow S... 2026-04-13
CVE-2026-1669 ⚠️ high 7.5 0.3 Arbitrary file read in the model loading mechanism (HDF5 integration) in Keras versions 3.0.0 through 3.13.1 on all supp... 2026-02-11
CVE-2026-0897 ⚠️ high 7.5 0.3 Allocation of Resources Without Limits or Throttling in the HDF5 weight loading component in Google Keras 3.0.0 throu... 2026-01-15
CVE-2025-12060 πŸ”Ά medium - 0.1 The keras.utils.get_file API in Keras, when used with the extract=True option for tar archives, is vulnerable to a path ... 2025-10-30
CVE-2025-12058 πŸ”Ά medium - 0.1 The Keras.Model.load_model method, including when executed with the intended security mitigation safe_mode=True, is vuln... 2025-10-29
These CVEs affect the same products