CVE-2026-1462: Keras - Insecure Deserialization
- Cve: CVE-2026-1462
- Name: Keras - Insecure Deserialization
- Description: 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.
- Impact: Attackers can execute arbitrary code during model inference with victim's privileges, potentially compromising the system.
- Remediation: Update to the latest version of Keras where this issue is fixed.
- Vulnerability type: insecure_deserialization
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.0042
- Epss percentile: 0.36779
- Assignee: [email protected]
- Published at: 2026-04-13T15:17:18Z
- Age in days: 225
- Modified at: 2026-07-15T02:18:14Z
- Patch available: yes
- Public exploits total: 1
- References total: 7
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-1462
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-502 | Deserialization of Untrusted Data |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://huntr.com/bounties/7e78d6f1-6977-4300-b595-e81bdbda331c | nvd | 2026-04-13 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/keras-team/keras/commit/b6773d3decaef1b05d8e794458e148cb362f163f | Patch |
| https://huntr.com/bounties/7e78d6f1-6977-4300-b595-e81bdbda331c | Exploit, Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2026:24977 | Third Party Advisory |
| 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://access.redhat.com/errata/RHSA-2026:37275 |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| keras:keras | = 3.13.0 | no | nvd | /v1/products/keras/keras |
| redhat:openshift_ai | >= 2.25, < 2.25.7 | no | nvd | /v1/products/redhat/openshift_ai |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| keras-team/keras | commit, fix, package, pull | yes | /v1/repositories/keras-team/keras |
Index
- Repositories: 169
- Repositories high signal: 81
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-04-13
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts