CVE-2026-0897
CVE-2026-0897 · Denial of Service in Keras via Excessive Memory Allocation in HDF5 Metadata
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 7.1 · High · EPSS 0.3% · Public exploit · Fix available
- Published
- Updated
Affected products and versions
keras
- Versions
- ≥ 3.0.0, ≤ 3.13.0: Affected (semver)
No fix published
keras Debian:11
- Versions
- 2.3.1+dfsg-3
- 2.3.1+dfsg2-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
keras PyPI
- Versions
- 3.0.0
- 3.0.1
- 3.0.2
- 3.0.3
- 3.0.4
- 3.0.5
- 3.1.0
- 3.1.1
- 3.10.0
- 3.11.0
- 3.11.1
- 3.11.2
- 3.11.3
- 3.12.0
- 3.2.0
- 3.2.1
- 3.3.0
- 3.3.1
- 3.3.2
- 3.3.3
- 3.4.0
- 3.4.1
- 3.5.0
- 3.6.0
- 3.7.0
- 3.8.0
- 3.9.0
- 3.9.1
- 3.9.2
- Affected ranges
- ECOSYSTEM: ≥ 3.0.0, < 3.12.1
Update to 3.12.1
keras PyPI
- Versions
- 3.13.0
- 3.13.1
- Affected ranges
- ECOSYSTEM: ≥ 3.13.0, < 3.13.2
Update to 3.13.2
keras PyPI
- Versions
- 3.0.0
- 3.0.1
- 3.0.2
- 3.0.3
- 3.0.4
- 3.0.5
- 3.1.0
- 3.1.1
- 3.10.0
- 3.11.0
- 3.11.1
- 3.11.2
- 3.11.3
- 3.12.0
- 3.12.1
- 3.12.2
- 3.12.3
- 3.13.0
- 3.2.0
- 3.2.1
- 3.3.0
- 3.3.1
- 3.3.2
- 3.3.3
- 3.4.0
- 3.4.1
- 3.5.0
- 3.6.0
- 3.7.0
- 3.8.0
- 3.9.0
- 3.9.1
- 3.9.2
- Affected ranges
- ECOSYSTEM: ≥ 3.0.0, < 3.13.1
Update to 3.13.1
keras Ubuntu:18.04:LTS
- Versions
- 1.0.7-2
- 2.1.1-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
keras Ubuntu:20.04:LTS
- Versions
- 2.2.4-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://github.com/keras-team/keras/pull/21880
- https://access.redhat.com/security/cve/CVE-2026-0897
- https://bugzilla.redhat.com/show_bug.cgi?id=2430027
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-0897.json
- https://access.redhat.com/errata/RHSA-2026:3782
- https://access.redhat.com/errata/RHSA-2026:3713
- https://access.redhat.com/errata/RHSA-2026:4271
- https://nvd.nist.gov/vuln/detail/CVE-2026-0897