CVE-2026-120757
published medium CVSS 4.0 · 6.9Heap Buffer Over-read via Non-Terminated Link Data in H5L__extern_traverse
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 a heap buffer over-read vulnerability in H5L__extern_traverse() in src/H5Lexternal.c, the default traversal callback for external links. The callback locates the target file name and object path within the link’s user data using strlen() without validating the buffer against its stored size (udata_size, which was marked unused). A crafted HDF5 file containing an external link whose data is not NULL-terminated, or is too short to hold both strings, causes strlen() to read past the end of the udata heap buffer, and the derived object path pointer may also point outside the buffer. The overrun is unbounded and continues until a zero byte is found. The flaw is triggered when the malicious link is traversed, for example when opening an object through it. An attacker who can get a user or application to access a crafted file can cause a denial of service, and adjacent heap contents may be incorporated into the external file name or object path the library attempts to open.
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
- 6.9 / 10
- Severity
- medium
- Provider
- HDFG · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
- 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)Default: unaffected | HDFG · cna |
Weaknesses
1- CWE-125 CWE-125 Out-of-bounds read
References
1Provider assertions
2HDFG · cna
Heap Buffer Over-read via Non-Terminated Link Data in H5L__extern_traverse
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d0ef6f192bcca1f209eb6ce7973f81c69c22aa66c4804718491ae5fea37ced23
- Ingested
- 03 Nov 2026, 17:55:35 UTC
- Source record
- Official CVE record