
CVE catalog
CVE-2026-12481
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_deseriali
- Severity
- Critical · CVSS 9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.72% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Cpe | keras | Not reported | Not reported | unknown |
| Debian | keras | 11 | 2.3.1+dfsg-3 | vulnerable |
| Debian | keras | 11 | 2.3.1+dfsg2-1 | vulnerable |
| Ubuntu | keras | 18.04 | 1.0.7-2 | vulnerable |
| Ubuntu | keras | 18.04 | 2.1.1-1 | vulnerable |
| Ubuntu | keras | 20.04 | 2.2.4-1 | vulnerable |
| Cpe | keras | Not reported | Not reported | unknown |
Fixed-version evidence
OpenFactory catalog packages
No matching packages in this catalog.
Observed:
References
- [https://huntr.com/bounties/59ceaed1-c8a3-4135-8f94-169ade02823d]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-12481]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-12481]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-12481]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-12481.json]
[FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]