CVE-2026-120757

Heap Buffer Over-read via Non-Terminated Link Data in H5L__extern_traverse

Published Nov 3, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability arises from the H5L__extern_traverse() routine in HDF5, which reads the target file name and object path from external link data using strlen() without validating the buffer size. When the link data is not null‑terminated or is too short, the function reads past the allocated heap buffer until a zero byte is encountered, potentially overreading adjacent heap memory and corrupting the derived object path. This overrun is unbounded and can cause application failure; the data read may also influence which external file the library attempts to access. The primary impact is a denial of service, and there is a risk of exposing unintended memory contents to the external link handler.

Affected Systems

The HDF Group’s HDF5 library versions prior to and including 2.2.0 are affected. Any installation that relies on version 2.2.0 or earlier and can load external links from user‑supplied HDF5 files is vulnerable.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity. The EPSS score is not available, and the issue is not listed in the CISA KEV catalog, suggesting limited public exploitation data. The attack requires a crafted HDF5 file containing an external link with malformed data and an application that opens the link. An attacker who can persuade a user or application to load the malicious file can trigger the vulnerability, leading to denial of service or unintended access to adjacent heap data. Since the flaw is triggered by local file usage, it is considered a local or file‑based threat rather than a remote network attack.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade your HDF5 installation to the latest release that includes the fix for the heap buffer over‑read in H5L__extern_traverse().
  • Validate or sanitize external link data before traversal, ensuring each link string is properly null‑terminated and its length matches the allocated buffer size.
  • If an immediate upgrade is not possible, disable external link traversal in the application or restrict the processing of external links to trusted sources only.

Generated by OpenCVE AI on November 3, 2026 at 16:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:hdfgroup:hdf5:*:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Hdfgroup
Hdfgroup hdf5
Vendors & Products Hdfgroup
Hdfgroup hdf5
Type Values Removed Values Added
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.
Title Heap Buffer Over-read via Non-Terminated Link Data in H5L__extern_traverse
Weaknesses CWE-125
References
Metrics cvssV4_0

{'score': 6.9, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
HDFG
Published
Updated
Nov 3, 2026, 5:52 PM
Reserved
Nov 2, 2026, 9:30 PM
Status
Analyzed
Published
Nov 3, 2026, 4:17 PM
Modified
Nov 3, 2026, 9:09 PM
Severity
Moderate
Public date
Nov 3, 2026, 3:35 PM