# CVE-2026-120689: Uncontrolled Recursion in HDF5 H5B__iterate_helper() via Crafted File


- **Severity:** Medium 4.3 (`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`)
- **Exploited in the wild:** Not known
- **Fix available:** Yes
- **Published:** 2 Nov 2026
- **Updated:** 2 Nov 2026
- **Also known as:** AZL-112526, DEBIAN-CVE-2026-120689, ECHO-40ee-57f0-9136, GHSA-6384-wh38-r9pf, UBUNTU-CVE-2026-120689

## What is CVE-2026-120689?

CVE-2026-120689 is a medium-severity vulnerability in The HDF Group HDF5, published on 2 Nov 2026. 

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

Weakness: CWE-674 (Uncontrolled Recursion)

## Which versions are affected by CVE-2026-120689?


Status by vendor (upstream, then each distribution release and vendor build):

| Who | Release | Status | Packages | Fixed in |
| --- | --- | --- | --- | --- |
| Red Hat | enterprise_linux_ai:3 | deferred | `hdf5` |  |
| Red Hat | hummingbird:1 | not affected | `hdf5` |  |
| Red Hat | openstack:13 | deferred | `hdf5` |  |

## How do I fix CVE-2026-120689?

Upgrade to a fixed version.

## Is CVE-2026-120689 being exploited?

There is no known exploitation of CVE-2026-120689 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-120689 and fix it if it is affected.

What it is: CVE-2026-120689 is a medium-severity vulnerability in The HDF Group HDF5, published on 2 Nov 2026. 
Exploitation: There is no known exploitation of CVE-2026-120689 in the wild and no public exploit code.

Affected product: The HDF Group HDF5. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-120689/ (Markdown: https://insights.sbomify.com/CVE-2026-120689/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-120689
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-120689
- OSV: https://osv.dev/vulnerability/CVE-2026-120689

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-120689/
Summaries are generated and may contain mistakes; the official description above is the record.
