Security mailing lists by PureSourceCode

CVE-2026-0897

HIGH 7.1CVSS 4.0

Keras 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD keras keras
cpe: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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.