GHSA-xfhx-r7ww-5995: Duplicate Advisory: Google Keras Allocates Resources Without Limits or Throttling in the HDF5 weight loading component
This advisory was withdrawn on May 6, 2026. The publisher no longer considers it a valid vulnerability.
Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-mgx6-5cf9-rr43. This link is maintained to preserve external references. Original Description Allocation of Resources Without Limits or Throttling in the HDF5 weight loading component in Google Keras 3.0.0 through 3.12.0 and 3.13.0 on all platforms allows a remote attacker to cause a Denial of Service (DoS) through memory…
Published Jan 15, 2026 · Updated May 6, 2026
Affected packages
keras
- Ecosystem
- PyPI
- Affected
- >= 3.0.0, < 3.12.1
- Fixed in
- 3.12.1
- Check
pip show keras
keras
- Ecosystem
- PyPI
- Affected
- >= 3.13.0, < 3.13.2
- Fixed in
- 3.13.2
- Check
pip show keras
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Duplicate Advisory
This advisory has been withdrawn because it is a duplicate of GHSA-mgx6-5cf9-rr43. This link is maintained to preserve external references.
Original Description
Allocation of Resources Without Limits or Throttling in the HDF5 weight loading component in Google Keras 3.0.0 through 3.12.0 and 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.
Credited to maksim-m, jeffcarp.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-0897
- https://github.com/keras-team/keras/pull/21880
- https://github.com/keras-team/keras/commit/7360d4f0d764fbb1fa9c6408fe53da41974dd4f6
- https://github.com/keras-team/keras/pull/22081
- https://github.com/keras-team/keras/commit/f704c887bf459b42769bfc8a9182f838009afddb
- https://github.com/advisories/GHSA-xfhx-r7ww-5995
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-12570
Keras model loading is vulnerable to denial of service through HDF5 shape bombs
medium5.5Aug 10, 2026CVE-2026-9335
Keras: HDF5 links can disclose local file contents
medium6.5Aug 2, 2026CVE-2026-12484
Keras: TorchModuleWrapper can deserialize unsafe PyTorch pickle data
high7.8Jul 19, 2026CVE-2026-12482
Keras: tar extraction permits symlink-based path traversal
low3.1Jul 14, 2026CVE-2026-12481
Keras: Lambda deserialization can bypass safe mode and execute code
high8.8Jul 3, 2026CVE-2026-12480
Keras: HDF5 virtual datasets can disclose local files
medium5.5Jul 1, 2026
