Back to CVE records
Medium 6.5Published Aug 1, 2026

CVE-2026-9335Improper Handling of HDF5 ExternalLinks in keras-team/keras

Updated under an hour ago ()

Does this affect you?

It affects keras-team/keras. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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.

CVSS
6.5 MEDIUM (v3.0, CNA)CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Weakness (CWE)
CWE-22
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
@huntr_ai
NVD analysis
Awaiting Analysis
Record last updated
Aug 3, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
keras-team keras-team/keras
keras_team:keras (from the name)
from unspecified before 3.12.3, 3.15.0
CNA record

References

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.