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

- Severity: High 7.8 (CVSS:3.1, scored by redhat-SADP) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-13T14:55:28.649Z
- Modified: 2026-09-10T03:51:00.954Z
- Also known as: GHSA-4f3f-g24h-fr8m, PYSEC-2026-2547
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- keras-team keras-team/keras: from unspecified before 3.13.2
- rhoai/odh-modelmesh-runtime-adapter-rhel9: no versions given (not affected: from 1780394782 before *)
- rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9: no versions given (not affected: from 1782471734 before *)
- rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9: no versions given (not affected: from 1782471879 before *)
- rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9: no versions given (not affected: from 1782471730 before *)
- rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9: no versions given (not affected: from 1782471835 before *)
- rhoai/odh-kserve-agent-rhel9: no versions given
- rhoai/odh-kserve-controller-rhel9: no versions given
- rhoai/odh-kserve-router-rhel9: no versions given
- rhoai/odh-kserve-storage-initializer-rhel9: no versions given
- rhoai/odh-modelmesh-runtime-adapter-rhel8: no versions given
- keras (PyPI): before 3.13.2
- keras keras: 3.13.0
- redhat openshift_ai: from 2.25 before 2.25.7

## Every score

- @huntr_ai: CVSS:3.0 8.8 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- redhat-SADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.0 8.8 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.0 8.8 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://huntr.com/bounties/7e78d6f1-6977-4300-b595-e81bdbda331c> (exploit, third-party-advisory, web)
- <https://github.com/keras-team/keras/commit/b6773d3decaef1b05d8e794458e148cb362f163f> (patch, web)
- <https://access.redhat.com/security/cve/CVE-2026-1462> (third-party-advisory, vdb-entry)
- <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:24977> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:37275> (vendor-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)

## Sources

- CVE List: [CVE-2026-1462](https://www.cve.org/CVERecord?id=CVE-2026-1462), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-4f3f-g24h-fr8m](https://github.com/advisories/GHSA-4f3f-g24h-fr8m), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-1462](https://nvd.nist.gov/vuln/detail/CVE-2026-1462), Public domain, modified 2026-07-15
- PyPA Advisory Database: [PYSEC-2026-2547](https://osv.dev/vulnerability/PYSEC-2026-2547), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-1462 · Whole record: https://cve.day/CVE-2026-1462.json · Rebuilt by cve.day 2026-11-25T22:59:18.617Z
