Medium severity · published Aug 2, 2026
CVE-2026-9335
Improper Handling of HDF5 ExternalLinks in keras-team/keras
6.5
CVSS
0.8%
EPSS
No
On KEV
Description
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 vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.8% · higher than 55% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
KE
keras-team/keras · keras-team
before 3.12.3, 3.15.0 · source: vendor
Affected product
KE
keras-team/keras
keras-team
More from keras-team/keras
9.8
CVE-2026-12481
Deserialization of Untrusted Data in keras-team/keras
8.1
CVE-2026-11816
Path Traversal in keras-team/keras
8.0
CVE-2025-12638
Path Traversal Vulnerability in keras-team/keras via Tar Archive Extraction in keras.utils.get_file()
7.8
CVE-2026-12484
Unsafe Deserialization in keras.layers.TorchModuleWrapper.from_config
7.8
CVE-2026-1462
Safe Mode Bypass in keras-team/keras