CVE-2025-1550
CVE-2025-1550 · Arbitrary Code Execution via Crafted Keras Config for Model Loading
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 7.3 · High · EPSS 2.6% · Public exploit · Fix available
- Published
- Updated
Affected products and versions
keras
- Versions
- ≥ 3.0.0, < 3.8.0: Affected (python)
Update to 3.8.0
keras PyPI
- Versions
- 3.0.0
- 3.0.1
- 3.0.2
- 3.0.3
- 3.0.4
- 3.0.5
- 3.1.0
- 3.1.1
- 3.2.0
- 3.2.1
- 3.3.0
- 3.3.1
- 3.3.2
- 3.3.3
- 3.4.0
- 3.4.1
- 3.5.0
- 3.6.0
- 3.7.0
- 3.8.0
- Affected ranges
- ECOSYSTEM: ≥ 3.0.0, < 3.9.0
Update to 3.9.0
keras PyPI
- Versions
- 3.0.0
- 3.0.1
- 3.0.2
- 3.0.3
- 3.0.4
- 3.0.5
- 3.1.0
- 3.1.1
- 3.2.0
- 3.2.1
- 3.3.0
- 3.3.1
- 3.3.2
- 3.3.3
- 3.4.0
- 3.4.1
- 3.5.0
- 3.6.0
- 3.7.0
- Affected ranges
- ECOSYSTEM: ≥ 3.0.0, < 3.8.0
Update to 3.8.0
keras Ubuntu:18.04:LTS
- Versions
- 1.0.7-2
- 2.1.1-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
keras Ubuntu:20.04:LTS
- Versions
- 2.2.4-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published