CVE-2026-120689
published medium CVSS 4.0 · 4.3Uncontrolled Recursion in HDF5 H5B__iterate_helper() via Crafted File
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| The HDF Group | — | HDF5<2.3.0 · Other versions: unaffected | Affected | Not stated | HDFG |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 4.3 / 10
- Severity
- medium
- Provider
- HDFG · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| The HDF Group | HDF5 | <2.3.0 (affected · custom)Default: unaffected | HDFG · cna |
Weaknesses
1- CWE-674 CWE-674 Uncontrolled Recursion
References
1Provider assertions
2HDFG · cna
Uncontrolled Recursion in HDF5 H5B__iterate_helper() via Crafted File
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f81c5e226d963733cf419d00af51e60aaab24d1f0272f7a49d41ee9cc7a0009e
- Ingested
- 02 Nov 2026, 19:57:23 UTC
- Source record
- Official CVE record