CVE-2026-0897
HIGH 7.1CVSS 4.0Keras vulnerable to DoS via Malicious .keras Model (HDF5 Shape Bomb Causes Petabyte Allocation in KerasFileEditor)
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.
- Published
- 15 Jan 2026
- Last modified
- 15 Jul 2026
- Assigned by
- cve-coordination@google.com
- NVD status
- Modified
- Weakness
- CWE-770
- Also known as
- GHSA-mgx6-5cf9-rr43PYSEC-2026-73
- Sources
- NVDJSONOSV GHSA-mgx6-5cf9-rr43JSONOSV PYSEC-2026-73JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | cve-coordination@google.com (Secondary) | CVSS 4.0 | HIGH 7.1 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) | CVSS 3.1 | HIGH 7.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | keras | kerascpe:2.3:a:keras:keras:*:*:*:*:*:*:*:* |
>= 3.0.0, <= 3.13.0 | |
| OSV | PyPI | keras | >= 3.0.0, < 3.12.1 | 3.12.1 |
| OSV | PyPI | keras | >= 3.13.0, < 3.13.2 | 3.13.2 |
| OSV | PyPI | keras | >= 3.0.0, < 3.13.1 | 3.13.1 |
References
- https://github.com/keras-team/keras/pull/21880 · Issue Tracking, Patch, WEB, FIX
- https://access.redhat.com/errata/RHSA-2026:3713
- https://access.redhat.com/errata/RHSA-2026:3782
- https://access.redhat.com/errata/RHSA-2026:4271
- 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://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
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 15 Jan 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 15 Jan 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 6 May 2026)