CVE-2026-12480
Published:July 01, 2026
Updated:July 21, 2026
Keras versions up to and including 3.13.2 are vulnerable to an arbitrary HDF5 file read due to an incomplete fix for CVE-2026-1669. The vulnerability resides in the "H5IOStore._verify_dataset()" and "file_editor.py" methods, which fail to check the "dataset.is_virtual" property of HDF5 datasets. This allows an attacker to craft a malicious ".keras" model archive or ".h5" weights file containing a Virtual Dataset (VDS) that references external HDF5 files on the victim's filesystem. When the victim loads the model using "keras.models.load_model()" or "keras.saving.load_model()", the external file is transparently read, leading to potential information disclosure. Fixed in versions 3.12.2 and 3.14.1.
Affected Packages
keras (CONDA):
Affected version(s) >=3.13.2 <3.14.1Fix Suggestion:
Update to version 3.14.1keras (CONDA):
Affected version(s) >=1.0.7 <3.12.2Fix Suggestion:
Update to version 3.12.2https://github.com/keras-team/keras.git (GITHUB):
Affected version(s) >=v3.13.0 <v3.14.1Fix Suggestion:
Update to version v3.14.1https://github.com/keras-team/keras.git (GITHUB):
Affected version(s) >=v2.6.0-rc0 <v3.12.2Fix Suggestion:
Update to version v3.12.2keras (PYTHON):
Affected version(s) >=0.1.0 <3.12.2Fix Suggestion:
Update to version 3.12.2keras (PYTHON):
Affected version(s) >=3.13.0 <3.14.1Fix Suggestion:
Update to version 3.14.1Related Resources (2)
Do you need more information?
Contact UsCVSS v4
Base Score:
6.8
Attack Vector
LOCAL
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:
5.5
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
External Control of File Name or Path
EPSS
Base Score:
0.13