Advisory

PYSEC-2026-73

Also known as: CVE-2026-0897, GHSA-mgx6-5cf9-rr43

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2026-01-15 14:16 UTC
Modified
2026-06-26 18:00 UTC

Affected packages and fixes

keras

PyPI · All systems

Affected

  • introduced 3.0.0, fixed 3.13.1 (ecosystem)

Fixed versions

3.13.1

Fix

  • Fixed version 3.13.1
    pip install --upgrade keras==3.13.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences