Skip to content
CriticalVulnerability

CVE-2025-1550: Keras Model.load_model arbitrary code execution via malicious .keras archive

Identifier
CVE-2025-1550
Published
Record updated
View JSON
Affected
  • keras >= 3.0.0, < 3.9.0
Fixed in
3.9.0
  • released March 4, 2025, 7 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
2.6%

Summary

CVE-2025-1550 affects the Keras Model.load_model function. A manually constructed, malicious .keras archive can alter its config.json file to name arbitrary Python modules and functions, with their arguments, which are then loaded and executed during model loading, even when safe_mode=True. Google Inc. is the CNA, rating it CVSS 4.0 7.3 HIGH.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.