CVE-2026-1462
HIGH 7.8CVSS 3.1Keras has an untrusted deserialization vulnerability
A vulnerability in the TFSMLayer class of the keras package, version 3.13.0, allows attacker-controlled TensorFlow SavedModels to be loaded during deserialization of .keras models, even when safe_mode=True. This bypasses the security guarantees of safe_mode and enables arbitrary attacker-controlled code execution during model inference under the victim's privileges. The issue arises due to the unconditional loading of external SavedModels, serialization of attacker-controlled file paths, and the lack of validation in the from_config() method.
- Published
- 13 Apr 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security@huntr.dev
- NVD status
- Modified
- Weakness
- CWE-502
- Also known as
- GHSA-4f3f-g24h-fr8mPYSEC-2026-2547
- Sources
- NVDJSONOSV GHSA-4f3f-g24h-fr8mJSONOSV PYSEC-2026-2547JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | HIGH 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | HIGH 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.0 | HIGH 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | keras | kerascpe:2.3:a:keras:keras:3.13.0:*:*:*:*:*:*:* |
= 3.13.0 | |
| NVD | redhat | openshift_aicpe:2.3:a:redhat:openshift_ai:*:*:*:*:*:*:*:* |
>= 2.25, < 2.25.7 | 2.25.7 |
| OSV | PyPI | keras | < 3.13.2 | 3.13.2 |
References
- https://github.com/keras-team/keras/commit/b6773d3decaef1b05d8e794458e148cb362f163f · Patch, WEB
- https://huntr.com/bounties/7e78d6f1-6977-4300-b595-e81bdbda331c · Exploit, Third Party Advisory, WEB
- https://access.redhat.com/errata/RHSA-2026:24977 · Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:37275
- https://access.redhat.com/security/cve/CVE-2026-1462 · Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2457856 · Issue Tracking, Third Party Advisory
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-1462.json · Third Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-1462 · ADVISORY
- https://github.com/keras-team/keras/pull/22035 · WEB
- https://github.com/keras-team/keras · PACKAGE
- https://pypi.org/project/keras · PACKAGE
- https://github.com/advisories/GHSA-4f3f-g24h-fr8m · ADVISORY
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 13 Apr 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 Apr 2026)