CVE-2025-8747
published 2025-08-11CVE-2025-8747: 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…
PriorityP342high7.8CVSS 3.1
AVLACLPRNUIRSUCHIHAH
EPSS
0.12%
1.9th percentile
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.
Affected
5 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | keras | — | — |
| keras | 3.0.0 – 3.10.0 | — | |
| keras | keras | >= 3.0.0 < 3.11.0 | 3.11.0 |
| keras | keras | 3.0.0 – 3.10.0 | — |
| msrc | azl3_keras_3.3.3-2_on_azure_linux_3.0 | — | — |
CVSS provenance
nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv4.08.6HIGHCVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:Y/R:A/V:X/RE:X/U:X
ghsa7.3HIGH
osv8.6HIGH
vendor_debian8.6LOW
vendor_msrc7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
Keras vulnerable to CVE-2025-1550 bypass via reuse of internal functionality
ghsa·2025-08-12·CVSS 7.3
CVE-2025-8747 [HIGH] CWE-502 Keras vulnerable to CVE-2025-1550 bypass via reuse of internal functionality
Keras vulnerable to CVE-2025-1550 bypass via reuse of internal functionality
### Summary
It is possible to bypass the mitigation introduced in response to [CVE-2025-1550](https://github.com/keras-team/keras/security/advisories/GHSA-48g7-3x6r-xfhp), when an untrusted Keras v3 model is loaded, even when “safe_mode” is enabled, by crafting malicious arguments to built-in Keras modules.
The vulnerability is exploitable on the default configuration and does not depend on user input (just requires an untrusted model to be loaded).
### Impact
| Type | Vector |Impact|
| -------- | ------- | ------- |
|Unsafe deserialization |Client-Side (when loading untrusted model)|Arbitrary file overwrite. Can lead to Arbitrary code execution in many cases.|
### Details
Keras’ [safe_mode](https://www.ten
OSV
Keras vulnerable to CVE-2025-1550 bypass via reuse of internal functionality
osv·2025-08-12·CVSS 7.3
CVE-2025-8747 [HIGH] Keras vulnerable to CVE-2025-1550 bypass via reuse of internal functionality
Keras vulnerable to CVE-2025-1550 bypass via reuse of internal functionality
### Summary
It is possible to bypass the mitigation introduced in response to [CVE-2025-1550](https://github.com/keras-team/keras/security/advisories/GHSA-48g7-3x6r-xfhp), when an untrusted Keras v3 model is loaded, even when “safe_mode” is enabled, by crafting malicious arguments to built-in Keras modules.
The vulnerability is exploitable on the default configuration and does not depend on user input (just requires an untrusted model to be loaded).
### Impact
| Type | Vector |Impact|
| -------- | ------- | ------- |
|Unsafe deserialization |Client-Side (when loading untrusted model)|Arbitrary file overwrite. Can lead to Arbitrary code execution in many cases.|
### Details
Keras’ [safe_mode](https://www.ten
OSV
CVE-2025-8747: A safe mode bypass vulnerability in the `Model
osv·2025-08-11·CVSS 8.6
CVE-2025-8747 [HIGH] CVE-2025-8747: A safe mode bypass vulnerability in the `Model
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.
Microsoft
Keras safe_mode bypass allows arbitrary code execution when loading a malicious model.
vendor_msrc·2025-08-12·CVSS 7.8
CVE-2025-8747 [HIGH] CWE-502 Keras safe_mode bypass allows arbitrary code execution when loading a malicious model.
Keras safe_mode bypass allows arbitrary code execution when loading a malicious model.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
Google: Google
Customer Action Required: Yes
Remediation: CBL-Mariner R
Debian
CVE-2025-8747: keras - A safe mode bypass vulnerability in the `Model.load_model` method in Keras versi...
vendor_debian·2025·CVSS 8.6
CVE-2025-8747 [HIGH] CVE-2025-8747: keras - A safe mode bypass vulnerability in the `Model.load_model` method in Keras versi...
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.
Scope: local
bullseye: resolved
No detection rules found.
No public exploits indexed.
2025-08-11
Published