# CVE-2026-120757: Heap Buffer Over-read via Non-Terminated Link Data in H5L\_\_extern\_traverse

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.9
- **CVSS:** 6.9 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: Passive; Confidentiality impact: Low; Integrity impact: None; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.15% (percentile 2, 2026-11-28)
- **CWE:** CWE-125
- **Published:** 2026-11-03T15:35:16.401Z
- **Modified:** 2026-11-03T21:09:06.000Z

## Who should check

- Anyone running The HDF Group HDF5 \< 2.3.0

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

## Affected and fixed versions

- The HDF Group HDF5: \< 2.3.0 (cvelist)

## Mitigation

- Upgrade HDF5 to 2.3.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-120757. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-120757.md
Affected: The HDF Group HDF5 < 2.3.0
Fixed in: The HDF Group HDF5 2.3.0

Steps:
1. Search this machine and project for The HDF Group HDF5: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-120757 being exploited?

There is no confirmed exploitation: CVE-2026-120757 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.15% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-120757?

Medium: CVSS 6.9 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

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

The HDF Group HDF5 \< 2.3.0.

### Is there a fix for CVE-2026-120757?

Yes. Fixed in The HDF Group HDF5 2.3.0. Upgrade HDF5 to 2.3.0 or later.

### How do I check if I'm affected by CVE-2026-120757?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://github.com/HDFGroup/hdf5/pull/6708>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-120757>

HTML: <https://flawdb.com/CVE-2026-120757> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-120757>
