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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-01-15 · Modified: 2026-07-15
- Aliases: GHSA-mgx6-5cf9-rr43, PYSEC-2026-73, UBUNTU-CVE-2026-0897, DEBIAN-CVE-2026-0897, CGA-qmvp-r226-825w, CGA-62vp-mx8x-gpfq, CGA-7gm8-5mwj-8xrv
- Record: https://cvemate.com/vulnerability/CVE-2026-0897 · JSON: https://cvemate.com/vulnerability/CVE-2026-0897/json

## Description

```text
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.
```

## Signals

- CVSS: 7.6 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H
- EPSS: 0.33%, percentile 28.142%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard kubeflow-pipelines-visualization-server (Chainguard): \< 2.15.0-r4
- chainguard tensorflow-cpu-jupyter (Chainguard): \< 2.20.0-r9
- chainguard tensorflow-gpu-jupyter (Chainguard): \< 2.20.0-r8
- wolfi kubeflow-pipelines-visualization-server (Wolfi): \< 2.15.0-r4
- debian keras (Debian): All versions (No fix recorded)
- ubuntu keras (Ubuntu): All versions (No fix recorded)
- google keras: ≥ 3.0.0, ≤ 3.13.0
- keras keras: ≥ 3.0.0, ≤ 3.13.0
- PyPI keras (PyPI): ≥ 3.0.0, \< 3.12.1 \| ≥ 3.13.0, \< 3.13.2 \| ≥ 3.0.0, \< 3.13.1

## References

- <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://github.com/keras-team/keras/security/advisories/GHSA-mgx6-5cf9-rr43>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-0897>
- <https://github.com/keras-team/keras/pull/22081>
- <https://github.com/keras-team/keras/commit/7360d4f0d764fbb1fa9c6408fe53da41974dd4f6>
- <https://github.com/keras-team/keras/commit/f704c887bf459b42769bfc8a9182f838009afddb>
- <https://github.com/keras-team/keras>
- <https://github.com/pypa/advisory-database/tree/main/vulns/keras/PYSEC-2026-73.yaml>
- <https://github.com/advisories/GHSA-mgx6-5cf9-rr43>
- <https://ubuntu.com/security/CVE-2026-0897>
- <https://www.cve.org/CVERecord?id=CVE-2026-0897>
- <https://security-tracker.debian.org/tracker/CVE-2026-0897>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/0xxx/CVE-2026-0897.json>

---

Data as of 2026-12-05T02:45:26.342Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
