CVE-2025-1550
Critical
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.
SeverityCritical
CVSS9.8
Exploit probability—
ProductKeras
PublishedMar 11, 2025
First seenMar 11, 2025
Weakness typeCWE-94Code injection
How to fix
Update
- keras keras3.8.0 or later
- keras3.9.0, 3.8.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| keras keras | 3.0.0 ≤ v < 3.8.0 | 3.8.0 |
| kerasPyPI | 3.0.0 ≤ v < 3.9.0, 3.0.0 ≤ v < 3.8.0 | 3.9.0, 3.8.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.