# CVE-2026-120757: Heap Buffer Over-read via Non-Terminated Link Data in H5L__extern_traverse


- **Severity:** Medium 6.9 (`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`)
- **Exploited in the wild:** Not known
- **Fix available:** Yes
- **Published:** 3 Nov 2026
- **Updated:** 3 Nov 2026
- **Also known as:** AZL-112637, DEBIAN-CVE-2026-120757, ECHO-d4e8-cece-226b, GHSA-2qgq-73w8-3hrx, UBUNTU-CVE-2026-120757

## What is CVE-2026-120757?

CVE-2026-120757 is a medium-severity vulnerability in HDF Group HDF5, published on 3 Nov 2026. 

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

Weakness: CWE-125 (Out-of-bounds Read)

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

It affects 1 product.


Products: HDF Group HDF5.

CPE match criteria (CPE 2.3):

- `cpe:2.3:a:hdfgroup:hdf5:*:*:*:*:*:*:*:*` up to 2.2.0

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

| Who | Release | Status | Packages | Fixed in |
| --- | --- | --- | --- | --- |
| Upstream |  | affected | `hdfgroup:hdf5` |  |
| Red Hat | enterprise_linux_ai:3 | deferred | `hdf5` |  |
| Red Hat | hummingbird:1 | fixed | `hdf5`, `hdf5-devel`, `hdf5-mpich` and 7 more | 2.2.0-0.1.5.hum1 |
| Red Hat | openstack:13 | deferred | `hdf5` |  |

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

Upgrade to a fixed version.

## Is CVE-2026-120757 being exploited?

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

## Other vulnerabilities in HDF Group HDF5

- [CVE-2024-32608](https://insights.sbomify.com/CVE-2024-32608/): HDF5 library through 1.14.3 has memory corruption in H5A__close resulting in the corruption of the instruction pointer and causing denial of (critical 9.8)
- [CVE-2024-29157](https://insights.sbomify.com/CVE-2024-29157/): HDF5 through 1.14.3 contains a heap buffer overflow in H5HG_read, resulting in the corruption of the instruction pointer and causing denial (critical 9.8)
- [CVE-2024-29159](https://insights.sbomify.com/CVE-2024-29159/): HDF5 through 1.14.3 contains a buffer overflow in H5Z__filter_scaleoffset, resulting in the corruption of the instruction pointer and causin (critical 9.8)
- [CVE-2024-29164](https://insights.sbomify.com/CVE-2024-29164/): HDF5 through 1.14.3 contains a stack buffer overflow in H5R__decode_heap, resulting in the corruption of the instruction pointer and causing (critical 9.8)
- [CVE-2024-32611](https://insights.sbomify.com/CVE-2024-32611/): HDF5 Library through 1.14.3 may use an uninitialized value in H5A__attr_release_table in H5Aint.c. (critical 9.8)

## Fix prompt for AI coding agents

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

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

Affected product: 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-120757/ (Markdown: https://insights.sbomify.com/CVE-2026-120757/index.md)
```

## Sources

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

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