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.
CVE ID: CVE-2025-1550
CVSS Base Severity: HIGH
CVSS Base Score: 7.3
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
Vendor: Google
Product: Keras
EPSS Score: 0.01% (probability of being exploited)
EPSS Percentile: 0.47% (scored less or equal to compared to others)
EPSS Date: 2025-04-09 (when was this score calculated)