CVE-2026-0897
Keras vulnerability
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.
Affected products
Keras. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Keras runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/keras-team/keras/pull/21880 · Patch
- nvd.nist.gov/vuln/detail/CVE-2026-0897
- github.com/keras-team/keras/commit/7360d4f0d764fbb1fa9c6408fe53da41974dd4f6
- github.com/advisories/GHSA-xfhx-r7ww-5995
- github.com/keras-team/keras/pull/22081
- github.com/keras-team/keras/commit/f704c887bf459b42769bfc8a9182f838009afddb
- github.com/keras-team/keras/security/advisories/GHSA-mgx6-5cf9-rr43
- github.com/advisories/GHSA-mgx6-5cf9-rr43
- nvd.nist.gov/vuln/detail/CVE-2026-0897
- cve.org/CVERecord?id=CVE-2026-0897
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.