Skip to main content
← All vulnerabilities
CVE-2025-1550PYSEC-2025-122GHSA-48G7-3X6R-XFHP

Arbitrary Code Execution via Crafted Keras Config for Model Loading

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.8.0, 3.9.0
1 on Exploit-DB, 1 proof of concept on GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. Public exploit on Exploit-DB

    EDB-52359

  3. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  4. Record last updated

Affected versions

  • Google Keras

    From 3.0.0 · fixed in 3.8.0

  • kerasPyPI

    From 3.0.0 · fixed in 3.8.0

  • kerasPyPI

    From 3.0.0 · fixed in 3.9.0

References 4

GitHub · keras-team/keras

towerofhanoi.it

Exploit-DB

GitHub · ChCh0i/cve-2025-1550