CVE-2025-1550
Arbitrary Code Execution via Crafted Keras Config for Model Loading
Reported by google · Published March 11, 2025
Keras is fixed in 3.9.0 and 3.8.0 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Keras | PyPI | 3.9.0, 3.8.0 |
| kubeflow-pipelines-visualization-server | Wolfi | 2.4.1-r2 |
| kubeflow-pipelines-visualization-server | Chainguard | 2.4.1-r2 |
| keras | keras | 3.8.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Keras | 3.0.0 | |
| Keras | 3.0.0 | |
| PyPI | keras | 3.0.0 |
| keras | keras | 3.0.0 |
Timeline
- Mar 11, 2025 CVE Published
- Mar 11, 2025 PoC Published (9 in total, the first dated here)
- Mar 12, 2025 EPSS Score (30 in total, the first dated here)
- Mar 25, 2025 Coalition ESS Score (15 in total, the first dated here)
- Jul 31, 2025 CVE Updated
- Mar 9, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-1550
vulnetix vdb fixes CVE-2025-1550
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-1550/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/keras-team/keras/commit/e67ac8ffd0c883bec68eb65bb52340c7f9d3a903 fix
- https://github.com/keras-team/keras/security/advisories/GHSA-48g7-3x6r-xfhp url
- https://nvd.nist.gov/vuln/detail/CVE-2025-1550 advisory
- https://github.com/keras-team/keras package
- https://github.com/keras-team/keras/releases/tag/v3.9.0 fix