CVE-2025-1550 HIGH

CVE-2025-1550: Arbitrary Code Execution via Crafted Keras Config for Model Loading

Vendor Google
Product Keras
Weakness CWE-94 · Code injection
Published March 11, 2025
Last update July 24, 2025

CVSS base score

7.3/10
Attack vector Local
Attack complexity Low
Privileges required Low
User interaction
Confidentiality
Integrity

CVSS vector

CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

March 11, 2025 CVE published
July 24, 2025 Record updated