Safe Mode Bypass in keras-team/keras

Summary

CVECVE-2026-1462
StatePUBLISHED
Assigner@huntr_ai
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-04-13 15:17:18 UTC
Updated2026-07-15 02:18:14 UTC
DescriptionA 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.

Risk And Classification

Primary CVSS: v3.1 7.8 HIGH from ADP

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

EPSS: 0.003630000 probability, percentile 0.285390000 (date 2026-07-18)

Problem Types: CWE-502 | CWE-502 CWE-502 Deserialization of Untrusted Data | CWE-502 Deserialization of Untrusted Data


VersionSourceTypeScoreSeverityVector
3.1ADPCVSS7.8HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
3.10b0ca135-0b70-47e7-9f44-1890c2a1c46cSecondary7.8HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
3.0[email protected]Secondary8.8HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
3.0CNADECLARED8.8HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

CVSS v3.0 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Keras Keras 3.13.0 All All All
Application Redhat Openshift Ai All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Keras-team Keras-team/keras affected unspecified 3.13.2 custom Not specified
ADP Red Hat Red Hat OpenShift AI 2.25 unaffected 1780394782 * rpm Not specified
ADP Red Hat Red Hat OpenShift AI 3.3 unaffected 1782471734 * rpm Not specified
ADP Red Hat Red Hat OpenShift AI 3.3 unaffected 1782471879 * rpm Not specified
ADP Red Hat Red Hat OpenShift AI 3.3 unaffected 1782471730 * rpm Not specified
ADP Red Hat Red Hat OpenShift AI 3.3 unaffected 1782471835 * rpm Not specified
ADP Red Hat Red Hat OpenShift AI RHOAI Not specified Not specified
ADP Red Hat Red Hat OpenShift AI RHOAI Not specified Not specified
ADP Red Hat Red Hat OpenShift AI RHOAI Not specified Not specified
ADP Red Hat Red Hat OpenShift AI RHOAI Not specified Not specified
ADP Red Hat Red Hat OpenShift AI RHOAI Not specified Not specified

References

ReferenceSourceLinkTags
bugzilla.redhat.com/show_bug.cgi 0b0ca135-0b70-47e7-9f44-1890c2a1c46c bugzilla.redhat.com Issue Tracking, Third Party Advisory
access.redhat.com/security/cve/CVE-2026-1462 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com Third Party Advisory
access.redhat.com/errata/RHSA-2026:24977 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com Third Party Advisory
huntr.com/bounties/7e78d6f1-6977-4300-b595-e81bdbda331c [email protected] huntr.com Exploit, Third Party Advisory
access.redhat.com/errata/RHSA-2026:37275 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-1462.json 0b0ca135-0b70-47e7-9f44-1890c2a1c46c security.access.redhat.com Third Party Advisory
github.com/keras-team/keras/commit/b6773d3decaef1b05d8e794458e148cb362f163f [email protected] github.com Patch
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Additional Advisory Data

SourceTimeEvent
ADP2026-04-13T15:02:12.634ZReported to Red Hat.
ADP2026-04-13T14:55:28.649ZMade public.

Solutions

ADP: RHSA-2026:24977: Red Hat OpenShift AI 2.25

ADP: RHSA-2026:37275: Red Hat OpenShift AI 3.3

Workarounds

ADP: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report