5.5
MEDIUM CVSS 3.0
CVE-2026-12480
Arbitrary HDF5 File Read via Virtual Dataset Bypass in keras-team/keras
Description

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.

INFO

Published Date :

July 1, 2026, 5:16 p.m.

Last Modified :

July 2, 2026, 5:55 p.m.

Remotely Exploit :

No
Affected Products

The following products are affected by CVE-2026-12480 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Keras keras
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.0 MEDIUM [email protected]
Solution
Update Keras to a version that includes the fix for arbitrary HDF5 file reads.
  • Update Keras to version 3.14.1 or later.
  • Apply the incomplete fix for CVE-2026-1669.
  • Verify HDF5 dataset virtual properties during loading.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-12480.

URL Resource
https://github.com/keras-team/keras/commit/d5a88bdb137c0d3039b8f4bbbe8c7099925cc10c
https://huntr.com/bounties/1875d257-5b03-4a69-ac70-e98653fa12c7
https://huntr.com/bounties/1875d257-5b03-4a69-ac70-e98653fa12c7
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-12480 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-12480 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-12480 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jul. 01, 2026

    Action Type Old Value New Value
    Added Reference https://huntr.com/bounties/1875d257-5b03-4a69-ac70-e98653fa12c7
    Added SSVC {'id': 'CVE-2026-12480', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-07-01T17:46:27.752463Z'}
  • New CVE Received by [email protected]

    Jul. 01, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': 'keras-team', 'product': 'keras-team/keras', 'versions': [{'status': 'affected', 'version': 'unspecified', 'lessThan': '3.12.2, 3.14.1', 'versionType': 'custom'}]}]
    Added Description 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.
    Added CVSS V3 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
    Added CWE CWE-73
    Added Reference https://github.com/keras-team/keras/commit/d5a88bdb137c0d3039b8f4bbbe8c7099925cc10c
    Added Reference https://huntr.com/bounties/1875d257-5b03-4a69-ac70-e98653fa12c7
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.