CVE-2026-1462
7.8high
Safe Mode Bypass in keras-team/keras
- Severity
- 7.8high CVSS:3.1 by redhat-SADP
- Exploit likelihood
- 0.43% (higher than 39% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- @huntr_ai
- Also known as
- GHSA-4f3f-g24h-fr8mPYSEC-2026-2547
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| keras-team keras-team/keras | from unspecified before 3.13.2 | CVE List |
| rhoai/odh-modelmesh-runtime-adapter-rhel9 | Not specified Not affected: from 1780394782 before * | CVE List |
| rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9 | Not specified Not affected: from 1782471734 before * | CVE List |
| rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9 | Not specified Not affected: from 1782471879 before * | CVE List |
| rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9 | Not specified Not affected: from 1782471730 before * | CVE List |
| rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9 | Not specified Not affected: from 1782471835 before * | CVE List |
| rhoai/odh-kserve-agent-rhel9 | Not specified | CVE List |
| rhoai/odh-kserve-controller-rhel9 | Not specified | CVE List |
| rhoai/odh-kserve-router-rhel9 | Not specified | CVE List |
| rhoai/odh-kserve-storage-initializer-rhel9 | Not specified | CVE List |
| rhoai/odh-modelmesh-runtime-adapter-rhel8 | Not specified | CVE List |
| keras (PyPI) | before 3.13.2 | GitHub Advisory Database, PyPA Advisory Database |
| keras keras | 3.13.0 | NVD |
| redhat openshift_ai | from 2.25 before 2.25.7 | NVD |
All scores
| @huntr_ai | 8.8high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| redhat-SADP | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 8.8high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | 8.8high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-1462 changed 2026-07-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4f3f-g24h-fr8m changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-1462 changed 2026-07-15 | Public domain |
| PyPA Advisory Database | PYSEC-2026-2547 changed 2026-07-13 | CC-BY-4.0 |