LIVE · cybersecurity feed
Live wire
cve recordcritical

CVE-2026-12481

keras · keras

Published
CVSS9.8
Severitycritical
WeaknessCWE-502
ExploitedNot in CISA KEV

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

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 `L

References

← Back to the CVE Tracker

Our coverage of CVE-2026-12481

No stories yet. This page updates automatically when we publish reporting that references CVE-2026-12481.