Skip to content
OpenAdvisories
High · 7.1 Public exploit CVE-2026-0897 EUVD-2026-2735GHSA-mgx6-5cf9-rr43GHSA-xfhx-r7ww-5995PYSEC-2026-73

Denial of Service in Keras via Excessive Memory Allocation in HDF5 Metadata

Published Jan 15, 2026 · Updated Jul 15, 2026 · Assigned by Google

Description

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.

Affected products

VendorProductAffectedFixed
Google Keras 3.0.0 – ≤ 3.13.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 11 keras No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS keras No fix yet —
Ubuntu 18.04 LTS keras No fix yet —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 keras 3.3.3-6 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling kubeflow-pipelines-visualization-server 2.15.0-r4 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • HyperPS/CVE-2026-0897 ★ 0 · Mar 29, 2026

    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 (…

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI keras >= 3.0.0, < 3.12.1 3.12.1 GHSA-mgx6-5cf9-rr43
PyPI keras >= 3.13.0, < 3.13.2 3.13.2 GHSA-mgx6-5cf9-rr43
PyPI keras >= 3.0.0, < 3.13.1 3.13.1 PYSEC-2026-73

References