Skip to main content
← All vulnerabilities
CVE-2025-8747GHSA-C9RC-MG46-23W3PYSEC-2025-75

Keras safe_mode bypass allows arbitrary code execution when loading a malicious model.

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.11.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

A safe mode bypass vulnerability in the `Model.load_model` method in Keras versions 3.0.0 through 3.10.0 allows an attacker to achieve arbitrary code execution by convincing a user to load a specially crafted `.keras` model archive.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • Google Keras

    From 3.0.0 · through 3.10.0

  • kerasPyPI

    From 3.0.0 · fixed in 3.11.0

  • kerasPyPI

    Version range not reported

References 2

GitHub · keras-team/keras

jfrog.com