CVE-2026-0897Keras
High 7.1 No auth needed
Follow: this CVE · Keras · Keras We alert you by email or Slack (account required).
- Priority
- 58
- CVSS 4.0
- 7.1
- EPSS
- —
- Auth required
- No
- Published
- Jan 15, 2026
- Updated
- Jul 15, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-770
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
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
What happens
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.
What to do
- Apply the vendor's security update for Keras.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | keras |
≥ 3.0.0 < 3.12.1 |
3.12.1 |
pip install "keras>=3.12.1" |
| PyPI | keras |
≥ 3.13.0 < 3.13.2 |
3.13.2 |
pip install "keras>=3.13.2" |
| PyPI | keras |
≥ 3.0.0 < 3.13.1 |
3.13.1 |
pip install "keras>=3.13.1" |
Per OSV / GitHub Advisories (GHSA-mgx6-5cf9-rr43, PYSEC-2026-73). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| keras | keras | ≥ 3.0.0 ≤ 3.13.0 |
Official sources
References
Links published by the sources. Open them with care.