CVE-2026-12481 Deserialization of Untrusted Data in keras-team/keras
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
- Technology
- DebianRed Hat
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.
Upgrade path
6 packages: 2 fixed, 3 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/keras(Debian 11) | = 2.3.1+dfsg-3; = 2.3.1+dfsg2-1; All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-kserve-storage-initializer-rhel9:1787073479(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-modelmesh-runtime-adapter-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| keras-team/keras | <= latest | after latest | Fixed |
| pypi keras(PyPI) | < 3.12.3; = 0.2.0; = 0.3.0; = 0.3.1 +118 more | 3.12.3, 3.15.0 | Fixed |
| Keras | = 3.14.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi keras(PyPI) | < 3.12.3 | 3.12.3 |
| pypi keras(PyPI) | = 0.2.0 | No fix listed |
| pypi keras(PyPI) | = 0.3.0 | No fix listed |
| pypi keras(PyPI) | = 0.3.1 | No fix listed |
| pypi keras(PyPI) | = 0.3.2 | No fix listed |
| pypi keras(PyPI) | = 0.3.3 | No fix listed |
| pypi keras(PyPI) | = 1.0.0 | No fix listed |
| pypi keras(PyPI) | = 1.0.1 | No fix listed |
| pypi keras(PyPI) | = 1.0.2 | No fix listed |
| pypi keras(PyPI) | = 1.0.3 | No fix listed |
| pypi keras(PyPI) | = 1.0.4 | No fix listed |
| pypi keras(PyPI) | = 1.0.5 | No fix listed |
| pypi keras(PyPI) | = 1.0.6 | No fix listed |
| pypi keras(PyPI) | = 1.0.7 | No fix listed |
| pypi keras(PyPI) | = 1.0.8 | No fix listed |
| pypi keras(PyPI) | = 1.1.0 | No fix listed |
| pypi keras(PyPI) | = 1.1.1 | No fix listed |
| pypi keras(PyPI) | = 1.1.2 | No fix listed |
| pypi keras(PyPI) | = 1.2.0 | No fix listed |
| pypi keras(PyPI) | = 1.2.1 | No fix listed |
| pypi keras(PyPI) | = 1.2.2 | No fix listed |
| pypi keras(PyPI) | = 2.0.0 | No fix listed |
| pypi keras(PyPI) | = 2.0.1 | No fix listed |
| pypi keras(PyPI) | = 2.0.2 | No fix listed |
| pypi keras(PyPI) | = 2.0.3 | No fix listed |
Show 104 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi keras(PyPI) | = 2.0.4 | No fix listed |
| pypi keras(PyPI) | = 2.0.5 | No fix listed |
| pypi keras(PyPI) | = 2.0.6 | No fix listed |
| pypi keras(PyPI) | = 2.0.7 | No fix listed |
| pypi keras(PyPI) | = 2.0.8 | No fix listed |
| pypi keras(PyPI) | = 2.0.9 | No fix listed |
| pypi keras(PyPI) | = 2.1.0 | No fix listed |
| pypi keras(PyPI) | = 2.1.1 | No fix listed |
| pypi keras(PyPI) | = 2.1.2 | No fix listed |
| pypi keras(PyPI) | = 2.1.3 | No fix listed |
| pypi keras(PyPI) | = 2.1.4 | No fix listed |
| pypi keras(PyPI) | = 2.1.5 | No fix listed |
| pypi keras(PyPI) | = 2.1.6 | No fix listed |
| pypi keras(PyPI) | = 2.10.0 | No fix listed |
| pypi keras(PyPI) | = 2.10.0rc0 | No fix listed |
| pypi keras(PyPI) | = 2.10.0rc1 | No fix listed |
| pypi keras(PyPI) | = 2.11.0 | No fix listed |
| pypi keras(PyPI) | = 2.11.0rc0 | No fix listed |
| pypi keras(PyPI) | = 2.11.0rc1 | No fix listed |
| pypi keras(PyPI) | = 2.11.0rc2 | No fix listed |
| pypi keras(PyPI) | = 2.11.0rc3 | No fix listed |
| pypi keras(PyPI) | = 2.12.0 | No fix listed |
| pypi keras(PyPI) | = 2.12.0rc0 | No fix listed |
| pypi keras(PyPI) | = 2.12.0rc1 | No fix listed |
| pypi keras(PyPI) | = 2.13.1 | No fix listed |
| pypi keras(PyPI) | = 2.13.1rc0 | No fix listed |
| pypi keras(PyPI) | = 2.13.1rc1 | No fix listed |
| pypi keras(PyPI) | = 2.14.0 | No fix listed |
| pypi keras(PyPI) | = 2.14.0rc0 | No fix listed |
| pypi keras(PyPI) | = 2.15.0 | No fix listed |
| pypi keras(PyPI) | = 2.15.0rc0 | No fix listed |
| pypi keras(PyPI) | = 2.15.0rc1 | No fix listed |
| pypi keras(PyPI) | = 2.2.0 | No fix listed |
| pypi keras(PyPI) | = 2.2.1 | No fix listed |
| pypi keras(PyPI) | = 2.2.2 | No fix listed |
| pypi keras(PyPI) | = 2.2.3 | No fix listed |
| pypi keras(PyPI) | = 2.2.4 | No fix listed |
| pypi keras(PyPI) | = 2.2.5 | No fix listed |
| pypi keras(PyPI) | = 2.3.0 | No fix listed |
| pypi keras(PyPI) | = 2.3.1 | No fix listed |
| pypi keras(PyPI) | = 2.4.0 | No fix listed |
| pypi keras(PyPI) | = 2.4.1 | No fix listed |
| pypi keras(PyPI) | = 2.4.2 | No fix listed |
| pypi keras(PyPI) | = 2.4.3 | No fix listed |
| pypi keras(PyPI) | = 2.5.0rc0 | No fix listed |
| pypi keras(PyPI) | = 2.6.0 | No fix listed |
| pypi keras(PyPI) | = 2.6.0rc0 | No fix listed |
| pypi keras(PyPI) | = 2.6.0rc1 | No fix listed |
| pypi keras(PyPI) | = 2.6.0rc2 | No fix listed |
| pypi keras(PyPI) | = 2.6.0rc3 | No fix listed |
| pypi keras(PyPI) | = 2.7.0 | No fix listed |
| pypi keras(PyPI) | = 2.7.0rc0 | No fix listed |
| pypi keras(PyPI) | = 2.7.0rc2 | No fix listed |
| pypi keras(PyPI) | = 2.8.0 | No fix listed |
| pypi keras(PyPI) | = 2.8.0rc0 | No fix listed |
| pypi keras(PyPI) | = 2.8.0rc1 | No fix listed |
| pypi keras(PyPI) | = 2.9.0 | No fix listed |
| pypi keras(PyPI) | = 2.9.0rc0 | No fix listed |
| pypi keras(PyPI) | = 2.9.0rc1 | No fix listed |
| pypi keras(PyPI) | = 2.9.0rc2 | No fix listed |
| pypi keras(PyPI) | = 3.0.0 | No fix listed |
| pypi keras(PyPI) | = 3.0.1 | No fix listed |
| pypi keras(PyPI) | = 3.0.2 | No fix listed |
| pypi keras(PyPI) | = 3.0.3 | No fix listed |
| pypi keras(PyPI) | = 3.0.4 | No fix listed |
| pypi keras(PyPI) | = 3.0.5 | No fix listed |
| pypi keras(PyPI) | = 3.1.0 | No fix listed |
| pypi keras(PyPI) | = 3.1.1 | No fix listed |
| pypi keras(PyPI) | = 3.10.0 | No fix listed |
| pypi keras(PyPI) | = 3.11.0 | No fix listed |
| pypi keras(PyPI) | = 3.11.1 | No fix listed |
| pypi keras(PyPI) | = 3.11.2 | No fix listed |
| pypi keras(PyPI) | = 3.11.3 | No fix listed |
| pypi keras(PyPI) | = 3.12.0 | No fix listed |
| pypi keras(PyPI) | = 3.12.1 | No fix listed |
| pypi keras(PyPI) | = 3.12.2 | No fix listed |
| pypi keras(PyPI) | = 3.2.0 | No fix listed |
| pypi keras(PyPI) | = 3.2.1 | No fix listed |
| pypi keras(PyPI) | = 3.3.0 | No fix listed |
| pypi keras(PyPI) | = 3.3.1 | No fix listed |
| pypi keras(PyPI) | = 3.3.2 | No fix listed |
| pypi keras(PyPI) | = 3.3.3 | No fix listed |
| pypi keras(PyPI) | = 3.4.0 | No fix listed |
| pypi keras(PyPI) | = 3.4.1 | No fix listed |
| pypi keras(PyPI) | = 3.5.0 | No fix listed |
| pypi keras(PyPI) | = 3.6.0 | No fix listed |
| pypi keras(PyPI) | = 3.7.0 | No fix listed |
| pypi keras(PyPI) | = 3.8.0 | No fix listed |
| pypi keras(PyPI) | = 3.9.0 | No fix listed |
| pypi keras(PyPI) | = 3.9.1 | No fix listed |
| pypi keras(PyPI) | = 3.9.2 | No fix listed |
| pypi keras(PyPI) | >= 3.13.0, < 3.15.0 | 3.15.0 |
| pypi keras(PyPI) | = 3.13.0 | No fix listed |
| pypi keras(PyPI) | = 3.13.1 | No fix listed |
| pypi keras(PyPI) | = 3.13.2 | No fix listed |
| pypi keras(PyPI) | = 3.14.0 | No fix listed |
| pypi keras(PyPI) | = 3.14.1 | No fix listed |
| keras-team/keras | <= latest | No fix listed |
| redhat/rhoai/odh-kserve-storage-initializer-rhel9:1787073479(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-modelmesh-runtime-adapter-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| debian/keras(Debian:11) | All versions | No fix listed |
| debian/keras(Debian:11) | = 2.3.1+dfsg-3 | No fix listed |
| debian/keras(Debian:11) | = 2.3.1+dfsg2-1 | No fix listed |
| Keras | = 3.14.0 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com patch
- github.com patch
- github.com patch
- github.com product
- github.com
- github.com
- huntr.com exploit third-party-advisory
- pypi.org product
- github.com vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:60520 patch vendor-advisory
- Red Hat Bugzilla 2496942 issue-tracking
- www.cve.org
- security-tracker.debian.org vendor-advisory