CVE-2026-9335
Published:August 02, 2026
Updated:August 04, 2026
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.
Affected Packages
keras (CONDA):
Affected version(s) >=1.0.7 <3.15.0Fix Suggestion:
Update to version 3.15.0https://github.com/keras-team/keras.git (GITHUB):
Affected version(s) >=v2.6.0-rc0 <v3.15.0Fix Suggestion:
Update to version v3.15.0keras (PYTHON):
Affected version(s) >=0.1.0 <3.15.0Fix Suggestion:
Update to version 3.15.0Related Resources (4)
Do you need more information?
Contact UsCVSS v4
Base Score:
7.1
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
EPSS
Base Score:
0.65