CVE-2026-1462
JSON

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 packageVersionsReported by
keras-team keras-team/kerasfrom unspecified before 3.13.2CVE List
rhoai/odh-modelmesh-runtime-adapter-rhel9Not specified
Not affected: from 1780394782 before *
CVE List
rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9Not specified
Not affected: from 1782471734 before *
CVE List
rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9Not specified
Not affected: from 1782471879 before *
CVE List
rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9Not specified
Not affected: from 1782471730 before *
CVE List
rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9Not specified
Not affected: from 1782471835 before *
CVE List
rhoai/odh-kserve-agent-rhel9Not specifiedCVE List
rhoai/odh-kserve-controller-rhel9Not specifiedCVE List
rhoai/odh-kserve-router-rhel9Not specifiedCVE List
rhoai/odh-kserve-storage-initializer-rhel9Not specifiedCVE List
rhoai/odh-modelmesh-runtime-adapter-rhel8Not specifiedCVE List
keras (PyPI)before 3.13.2GitHub Advisory Database, PyPA Advisory Database

All scores

@huntr_ai8.8high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
redhat-SADP7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
GitHub8.8high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
PyPA Advisory Database8.8high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-502

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

References

https://huntr.com/bounties/7e78d6f1-6977-4300-b595-e81bdbda331cexploit, third-party-advisory, web
https://github.com/keras-team/keras/commit/b6773d3decaef1b05d8e794458e148cb362f163fpatch, web
https://access.redhat.com/security/cve/CVE-2026-1462third-party-advisory, vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2457856issue-tracking, third-party-advisory
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-1462.jsonthird-party-advisory
https://access.redhat.com/errata/RHSA-2026:24977third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2026:37275vendor-advisory
https://nvd.nist.gov/vuln/detail/CVE-2026-1462advisory
https://github.com/keras-team/keras/pull/22035web
https://github.com/keras-team/keraspackage
https://pypi.org/project/keraspackage
https://github.com/advisories/GHSA-4f3f-g24h-fr8madvisory

Sources

SourceRecordLicence
CVE ListCVE-2026-1462 changed 2026-07-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-4f3f-g24h-fr8m changed 2026-09-10CC-BY-4.0
NVDCVE-2026-1462 changed 2026-07-15Public domain
PyPA Advisory DatabasePYSEC-2026-2547 changed 2026-07-13CC-BY-4.0