Denial of Service in Keras via Excessive Memory Allocation in HDF5 Metadata
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 3 fixed, 1 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-770.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Keras | 3.0.0 – 3.13.0 | — | No fix listed | CNA | |
| — | keras (PyPI) | 3.0.0 to before 3.12.1 | 3.12.1 | Patch available | GHSA-mgx6-5cf9-rr43 |
| — | keras (PyPI) | 3.13.0 to before 3.13.2 | 3.13.2 | Patch available | GHSA-mgx6-5cf9-rr43 |
- Keras VendorGoogle Affected 3.0.0 – 3.13.0 Fixed in — No fix listed CNA
- keras (PyPI) Vendor— Affected 3.0.0 to before 3.12.1 Fixed in 3.12.1 Patch available GHSA-mgx6-5cf9-rr43
- keras (PyPI) Vendor— Affected 3.13.0 to before 3.13.2 Fixed in 3.13.2 Patch available GHSA-mgx6-5cf9-rr43
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:keras:keras:*:*:*:*:*:*:*:* | 3.0.0 – 3.13.0 | Vulnerable | keras-team |
- cpe:2.3:a:keras:keras:*:*:*:*:*:*:*:* Versions 3.0.0 – 3.13.0 Vulnerable ·keras-team
Remediation
- Fix · GHSA-mgx6-5cf9-rr43 keras (PyPI) Fixed in 3.12.1 Advisory →
- Fix · GHSA-mgx6-5cf9-rr43 keras (PyPI) Fixed in 3.13.2 Advisory →
Red Hat 3 advisories
- RHSA-2026:4271 Released 2026-03-11 · Red Hat rating ImportantRHTAS 1.3.2 - Tech Preview Release of Model Transparency
- Red Hat Trusted Artifact Signer 1.3 registry.redhat.io/rhtas/model-transparency-rhel9
- RHSA-2026:3782 Released 2026-03-04 · Red Hat rating CriticalRHOAI 2.25.3 - Red Hat OpenShift AI
- Red Hat OpenShift AI 2.25 registry.redhat.io/rhoai/odh-caikit-tgis-serving-rhel9, registry.redhat.io/rhoai/odh-codeflare-operator-rhel9, registry.redhat.io/rhoai/odh-dashboard-rhel9 +27
- RHSA-2026:3713 Released 2026-03-04 · Red Hat rating CriticalRHOAI 3.3 - Red Hat OpenShift AI
- Red Hat OpenShift AI 3.3 registry.redhat.io/rhoai/odh-built-in-detector-rhel9, registry.redhat.io/rhoai/odh-dashboard-rhel9, registry.redhat.io/rhoai/odh-data-science-pipelines-argo-argoexec-rhel9 +47
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet |
| Red Hat OpenShift AI 2.25 | Fixed | RHSA-2026:3782 |
| Red Hat OpenShift AI 3.3 | Fixed | RHSA-2026:3713 |
| Red Hat Trusted Artifact Signer 1.3 | Fixed | RHSA-2026:4271 |
Not affected: 3 products
- Red Hat OpenShift AI (RHOAI)
- Red Hat OpenShift AI 2.25
- Red Hat OpenShift AI 3.3
Timeline
- 2026-10-02 Threatist record created from CVE-2026-0897
- 2026-10-03 Alias added: GHSA-mgx6-5cf9-rr43
References
Other 6
- https://github.com/keras-team/keras/security/advisories/GHSA-mgx6-5cf9-rr43
- 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
More Google vulnerabilities
- TI-2025-09686 Type confusion in Google Chrome KEVCVSS 3.1CRITICAL 9.8
- TI-2024-07390 Type confusion in Google Chrome KEVCVSS 3.1CRITICAL 9.6
- TI-2024-04898 Type confusion in Google Chrome KEVCVSS 3.1CRITICAL 9.6
- TI-2024-04600 Type confusion in Google Chrome KEVCVSS 3.1CRITICAL 9.6
- TI-2024-04346 Use after free in Google Chrome KEVCVSS 3.1CRITICAL 9.6
- TI-2023-05824 Integer overflow in Google Chrome KEVCVSS 3.1CRITICAL 9.6
Sources
- CVE-2026-0897 · CVE Program
- CVE-2026-0897 · NVD
- FIRST EPSS
- GHSA-mgx6-5cf9-rr43 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-0897 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences