# CVE-2026-0897: Denial of Service in Keras via Excessive Memory Allocation in HDF5 Metadata

- Severity: High 7.1 (CVSS:4.0, scored by Google) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Published: 2026-01-15T14:09:53.603Z
- Modified: 2026-07-15T02:18:00.310Z
- Also known as: GHSA-mgx6-5cf9-rr43, PYSEC-2026-73
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Google

## Description

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.

(As written by CVE List.)

## Affected

- Google Keras: from 3.0.0 up to 3.13.0
- rhoai/odh-modelmesh-runtime-adapter-rhel9: no versions given (not affected: from 1772094445 before *)
- rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9: no versions given (not affected: from 1772093304 before *; from 1771502897 before *)
- rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9: no versions given (not affected: from 1772093283 before *; from 1771502844 before *)
- rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9: no versions given (not affected: from 1772093300 before *; from 1771502910 before *)
- rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9: no versions given (not affected: from 1772093272 before *; from 1771502884 before *)
- rhtas/model-transparency-rhel9: no versions given (not affected: from 1772614635 before *)
- rhoai/odh-kserve-agent-rhel9: no versions given
- rhoai/odh-kserve-controller-rhel9: no versions given
- rhoai/odh-kserve-router-rhel9: no versions given
- rhoai/odh-kserve-storage-initializer-rhel9: no versions given
- rhoai/odh-modelmesh-runtime-adapter-rhel8: no versions given
- keras (PyPI): from 3.0.0 before 3.12.1; from 3.13.0 before 3.13.2; from 3.0.0 before 3.13.1
- keras keras: from 3.0.0 up to 3.13.0

## Every score

- Google: CVSS:4.0 7.1 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- redhat-SADP: CVSS:3.1 7.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/keras-team/keras/pull/21880> (fix, issue-tracking, patch, web)
- <https://access.redhat.com/security/cve/CVE-2026-0897> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2430027> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-0897.json>
- <https://access.redhat.com/errata/RHSA-2026:3782> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:3713> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:4271> (vendor-advisory)
- <https://github.com/keras-team/keras/security/advisories/GHSA-mgx6-5cf9-rr43> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-0897> (advisory)
- <https://github.com/keras-team/keras/pull/22081> (web)
- <https://github.com/keras-team/keras/commit/7360d4f0d764fbb1fa9c6408fe53da41974dd4f6> (web)
- <https://github.com/keras-team/keras/commit/f704c887bf459b42769bfc8a9182f838009afddb> (web)
- <https://github.com/keras-team/keras> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/keras/PYSEC-2026-73.yaml> (web)
- <https://github.com/advisories/GHSA-mgx6-5cf9-rr43> (advisory)

## Sources

- CVE List: [CVE-2026-0897](https://www.cve.org/CVERecord?id=CVE-2026-0897), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-mgx6-5cf9-rr43](https://github.com/advisories/GHSA-mgx6-5cf9-rr43), CC-BY-4.0, modified 2026-06-08
- NVD: [CVE-2026-0897](https://nvd.nist.gov/vuln/detail/CVE-2026-0897), Public domain, modified 2026-07-15
- PyPA Advisory Database: [PYSEC-2026-73](https://osv.dev/vulnerability/PYSEC-2026-73), CC-BY-4.0, modified 2026-06-26

---

Page: https://cve.day/CVE-2026-0897 · Whole record: https://cve.day/CVE-2026-0897.json · Rebuilt by cve.day 2026-11-25T22:59:12.849Z
