CVE-2025-1550
Severity CVSS v4.0:
HIGH
Type:
CWE-94
Code Injection
Publication date:
11/03/2025
Last modified:
31/07/2025
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.
Impact
Base Score 4.0
7.30
Severity 4.0
HIGH
Base Score 3.x
9.80
Severity 3.x
CRITICAL
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:a:keras:keras:*:*:*:*:*:*:*:* | 3.0.0 (including) | 3.8.0 (excluding) |
To consult the complete list of CPE names with products and versions, see this page



