CVE-2025-1550
HIGH 7.3CVSS 4.0Arbitrary Code Execution via Crafted Keras Config for Model Loading
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.
- Published
- 11 Mar 2025
- Last modified
- 10 Sep 2026
- Assigned by
- cve-coordination@google.com
- NVD status
- Analyzed
- Weakness
- CWE-94
- Also known as
- GHSA-48g7-3x6r-xfhpPYSEC-2025-122
- Sources
- NVDJSONOSV GHSA-48g7-3x6r-xfhpJSONOSV PYSEC-2025-122JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | cve-coordination@google.com (Secondary) | CVSS 4.0 | HIGH 7.3 | 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/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:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | keras | kerascpe:2.3:a:keras:keras:*:*:*:*:*:*:*:* |
>= 3.0.0, < 3.8.0 | 3.8.0 |
| OSV | PyPI | keras | >= 3.0.0, < 3.9.0 | 3.9.0 |
| OSV | PyPI | keras | >= 3.0.0, < 3.8.0 | 3.8.0 |
References
- https://github.com/keras-team/keras/pull/20751 · Issue Tracking, Patch, WEB, FIX
- https://towerofhanoi.it/writeups/cve-2025-1550/ · Exploit, Third Party Advisory, WEB, EVIDENCE
- https://github.com/keras-team/keras/security/advisories/GHSA-48g7-3x6r-xfhp · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-1550 · ADVISORY
- https://github.com/keras-team/keras/commit/e67ac8ffd0c883bec68eb65bb52340c7f9d3a903 · WEB
- https://github.com/keras-team/keras · PACKAGE
- https://github.com/keras-team/keras/releases/tag/v3.9.0 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/keras/PYSEC-2025-122.yaml · WEB
- https://github.com/advisories/GHSA-48g7-3x6r-xfhp · ADVISORY
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 11 Mar 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 11 Mar 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 11 Mar 2025)