๐Ÿ” CVE Alert

CVE-2026-12481

HIGH 8.8

Deserialization of Untrusted Data in keras-team/keras

CVSS Score
8.8
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-502
Vendor keras-team
Product keras-team/keras
Published Jul 3, 2026
Stay Ahead of the Next One

Get instant alerts for keras-team keras-team/keras

Be the first to know when new high vulnerabilities affecting keras-team keras-team/keras are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected Versions

keras-team / keras-team/keras
unspecified โ‰ค latest

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
huntr.com: https://huntr.com/bounties/59ceaed1-c8a3-4135-8f94-169ade02823d