← back
CVE-2025-1550

Arbitrary Code Execution via Crafted Keras Config for Model Loading

CVSS 7.3 HIGHEPSS 2.8%CWE-94
Vexday Risk Score
41Attention
SSVC decision (CISA)
Attend
PoC available → attend closely
CVSS 7.3EPSS 2.8%KEV nãoPoC públicaNuclei Metasploit Patch
Lifecycle
11 Mar 2025Published on NVD
16 Jul 2025Public PoC
Recommendation: Plan a near-term fix — a public PoC already exists.
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.
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
Affected products
Google · Keras
⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.

Want to know if your infrastructure is exposed to this?

Talk to TrueHacking →