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.

Vulnerable products and versions

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