Skip to main content
← All vulnerabilities
CVE-2026-9335PYSEC-2026-3633GHSA-M8WH-29WM-52MV

Improper Handling of HDF5 ExternalLinks in keras-team/keras

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.12.3, 3.15.0
1 proof of concept on GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

A vulnerability in keras-team/keras versions <= 3.14.0 allows arbitrary local HDF5 file content disclosure due to improper handling of HDF5 ExternalLinks. The `KerasFileEditor` and `keras.saving.load_weights` functions bypass the `safe_get_h5_group` and `safe_get_h5_dataset` helpers, which are designed to reject ExternalLinks and SoftLinks. This results in automatic dereferencing of links to external HDF5 files, enabling attackers to disclose sensitive data from the victim's local filesystem. Specifically, `KerasFileEditor` extracts attributes and datasets from linked files into its internal structures, while `keras.saving.load_weights` loads weights from linked files into the user's model. This issue can be exploited by providing a malicious `.h5`, `.weights.h5`, or `.keras` file containing ExternalLinks.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • keras-team keras-team/keras

    Version range not reported

  • kerasPyPI

    fixed in 3.12.3; From 3.13.0 · fixed in 3.15.0

  • kerasPyPI

    fixed in 3.12.3

  • kerasPyPI

    From 3.13.0 · fixed in 3.15.0

References 3

huntr.com

GitHub · keras-team/keras

GitHub · paparojonathan/CVE-2026-9335-keras-hdf5-externallink