CVE-2025-1550

HIGH CVSS 4.0: 7.3 EPSS 2.60%
Updated Jul 31, 2025
Keras
Parameter Value
CVSS 7.3 (HIGH)
Affected Versions 3.0.0 — 3.8.0
Fixed In 3.8.0
Type CWE-94 (Code Injection)
Vendor Keras
Public PoC No

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.

Attack Parameters

Attack Vector
Local
Requires local access
Attack Complexity
Low
Easy to exploit
Attack Requirements
Present
Additional conditions required
Privileges Required
Low
Basic privileges needed
User Interaction
Active
User action required

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v4.0

Weakness Type (CWE)

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Keras Keras
cpe:2.3:a:keras:keras:*:*:*:*:*:*:*:*
3.0.0 3.8.0