CVE-2025-1550: Keras
Critical severity, CVSS 9.8. EPSS: 2.6% chance of exploitation in the next 30 days.
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.
Affected products
- Keras Keras: from 3.0.0, before 3.8.0 (fixed in 3.8.0)
Published 2025-03-11. Last modified 2026-06-17.