# CVE-2026-1462: Safe Mode Bypass in keras-team/keras

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-04-13 · Modified: 2026-07-15
- Aliases: GHSA-4f3f-g24h-fr8m, PYSEC-2026-2547, UBUNTU-CVE-2026-1462, DEBIAN-CVE-2026-1462, CGA-rgm8-c4v3-j9ww
- Record: https://cvemate.com/vulnerability/CVE-2026-1462 · JSON: https://cvemate.com/vulnerability/CVE-2026-1462/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.0, CVE.org) CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.429%, percentile 39.04%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- chainguard kubeflow-pipelines-visualization-server (Chainguard): All versions (No fix recorded)
- wolfi kubeflow-pipelines-visualization-server (Wolfi): All versions (No fix recorded)
- debian keras (Debian): All versions (No fix recorded)
- ubuntu keras (Ubuntu): All versions (No fix recorded)
- keras-team keras-team/keras: ≥ unspecified, \< 3.13.2
- keras keras: 3.13.0
- PyPI keras (PyPI): \< 3.13.2
- redhat openshift\_ai: ≥ 2.25, \< 2.25.7

## References

- <https://huntr.com/bounties/7e78d6f1-6977-4300-b595-e81bdbda331c>
- <https://github.com/keras-team/keras/commit/b6773d3decaef1b05d8e794458e148cb362f163f>
- <https://access.redhat.com/security/cve/CVE-2026-1462>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2457856>
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-1462.json>
- <https://access.redhat.com/errata/RHSA-2026:24977>
- <https://access.redhat.com/errata/RHSA-2026:37275>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-1462>
- <https://github.com/keras-team/keras/pull/22035>
- <https://github.com/keras-team/keras>
- <https://pypi.org/project/keras>
- <https://github.com/advisories/GHSA-4f3f-g24h-fr8m>
- <https://ubuntu.com/security/CVE-2026-1462>
- <https://www.cve.org/CVERecord?id=CVE-2026-1462>
- <https://security-tracker.debian.org/tracker/CVE-2026-1462>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/1xxx/CVE-2026-1462.json>

---

Data as of 2026-12-05T02:55:08.776Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
