Skip to main content
← All vulnerabilities
CVE-2026-0897PYSEC-2026-73GHSA-MGX6-5CF9-RR43

Denial of Service in Keras via Excessive Memory Allocation in HDF5 Metadata

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.13.1, 3.12.1, 3.13.2
1 proof of concept on GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

Allocation of Resources Without Limits or Throttling in the HDF5 weight loading component in Google Keras 3.0.0 through 3.13.0 on all platforms allows a remote attacker to cause a Denial of Service (DoS) through memory exhaustion and a crash of the Python interpreter via a crafted .keras archive containing a valid model.weights.h5 file whose dataset declares an extremely large shape.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • Google Keras

    From 3.0.0 · through 3.13.0

  • kerasPyPI

    From 3.0.0 · fixed in 3.13.1

  • kerasPyPI

    From 3.0.0 · fixed in 3.12.1

  • kerasPyPI

    From 3.13.0 · fixed in 3.13.2

References 2

GitHub · keras-team/keras

GitHub · HyperPS/CVE-2026-0897