CVE-2025-1550
Arbitrary Code Execution via Crafted Keras Config for Model Loading
9.8
CRITICAL
CVSS 3.1
EPSS 8.0%
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.
How to fix CVE-2025-1550
To remediate CVE-2025-1550, upgrade the affected package to a fixed version below.
- —upgrade to 3.9.0 or later
- —upgrade to 3.8.0 or later
Is CVE-2025-1550 being exploited?
Moderate — EPSS is 8.0%. Track this CVE but it's not at the top of the prioritisation list.
Affected packages (2)
- >= 3.0.0, < 3.9.0
- >= 3.0.0, < 3.8.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | 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 |
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |