CVE-2025-1550
published high CVSS 4.0 · 7.3Arbitrary Code Execution via Crafted Keras Config for Model Loading
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| — | Keras3.0.0 to < 3.8.0 · Other versions: unaffected | Affected | Not stated |
Description
The Keras Model.load_model function permits arbitrary code execution, even with safe_mode=True, through a manually constructed, malicious .keras archive. By altering the config.json file within the archive, an attacker can specify arbitrary Python modules and functions, along with their arguments, to be loaded and executed during model loading.
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
- 7.3 / 10
- Severity
- high
- Provider
- Google · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
- 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 to < 3.8.0 (affected · python)Default: unaffected | Google · cna |
Weaknesses
1- CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection')
References
2Provider assertions
2Google · cna
Arbitrary Code Execution via Crafted Keras Config for Model Loading
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- e695526acee085f81e6af99c7e09df714c8e17a068b240f0ee50fdd346140f4a
- Ingested
- 23 Sep 2026, 08:38:52 UTC
- Source record
- Official CVE record