CVE-2025-8747
published high CVSS 4.0 · 8.6Keras safe_mode bypass allows arbitrary code execution when loading a malicious model.
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| — | Keras3.0.0 through 3.10.0 · Other versions: unaffected | Affected | Not stated |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.6 / 10
- Severity
- high
- Provider
- Google · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Keras | 3.0.0 through 3.10.0 (affected · semver)Default: unaffected | Google · cna |
Weaknesses
1- CWE-502 CWE-502 Deserialization of Untrusted Data
References
2Provider assertions
2Google · cna
Keras safe_mode bypass allows arbitrary code execution when loading a malicious model.
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ca9d97ddb60d5dafffab54ad6b79b7fa8821226ebe0a8e4a641b725ad5fc0862
- Ingested
- 23 Sep 2026, 08:59:12 UTC
- Source record
- Official CVE record