CVE-2025-1550
March 11, 2025
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 Packages
keras (CONDA):
Affected version(s) >=3.0.2 <3.9.0Fix Suggestion:
Update to version 3.9.0https://github.com/keras-team/keras.git (GITHUB):
Affected version(s) >=v3.0.0 <v3.9.0Fix Suggestion:
Update to version v3.9.0keras (PYTHON):
Affected version(s) >=3.0.0 <3.9.0Fix Suggestion:
Update to version 3.9.0Related ResourcesĀ (8)
Do you need more information?
Contact UsCVSS v4
Base Score:
7.3
Attack Vector
LOCAL
Attack Complexity
LOW
Attack Requirements
PRESENT
Privileges Required
LOW
User Interaction
ACTIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
HIGH
Subsequent System Availability
HIGH
CVSS v3
Base Score:
8.2
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Control of Generation of Code ('Code Injection')
EPSS
Base Score:
4.78