CVE-2025-8747

Keras safe_mode bypass allows arbitrary code execution when loading a malicious model.

Published Aug 11, 2025 CVSS 4.0 · 8.6 High EPSS < 1% KEV · Not listed
Description
A safe mode bypass vulnerability in the `Model.load_model` method in Keras versions 3.0.0 through 3.10.0 allows an attacker to achieve arbitrary code execution by convincing a user to load a specially crafted `.keras` model archive.

Remediation

Vendor Solution

Upgrade to a version of Keras with the fix implemented (version 3.11.0 or newer).

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-24127 Keras vulnerable to CVE-2025-1550 bypass via reuse of internal functionality
Github GHSA Github GHSA GHSA-c9rc-mg46-23w3 Keras vulnerable to CVE-2025-1550 bypass via reuse of internal functionality
History
Type Values Removed Values Added
CPEs cpe:2.3:a:keras:keras:*:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
First Time appeared Keras
Keras keras
Vendors & Products Keras
Keras keras
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A safe mode bypass vulnerability in the `Model.load_model` method in Keras versions 3.0.0 through 3.10.0 allows an attacker to achieve arbitrary code execution by convincing a user to load a specially crafted `.keras` model archive.
Title Keras safe_mode bypass allows arbitrary code execution when loading a malicious model.
Weaknesses CWE-502
References
Metrics cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/AU:Y/R:A'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
Google
Published
Updated
Feb 26, 2026, 5:49 PM
Reserved
Aug 8, 2025, 9:37 AM
Status
Analyzed
Published
Aug 11, 2025, 8:15 AM
Modified
Jun 17, 2026, 10:07 AM