CVE-2026-120756

Heap Buffer Over-read via Malformed Message Size in HDF5's H5O__chunk_deserialize

Published Nov 3, 2026 CVSS 4.0 · 1.9 Low EPSS < 1% KEV · Not listed
Description
HDF5 through 2.2.0 contains a heap buffer over-read vulnerability in H5O__chunk_deserialize() in src/H5Ocache.c. When decoding object header messages, the declared message size is checked against the end of the chunk image before the remainder of the message header (flags, and for version 2 object headers, the optional creation index) has been decoded. Because the message body begins after these fields, a message can start up to four bytes further into the chunk than the size check accounts for. A crafted HDF5 file can declare a message size that passes the check but extends past the end of the chunk image, causing the message’s decode callback, for example H5O__mtime_new_decode() in src/H5Omtime.c, to read beyond the heap allocation. The flaw is reachable during H5Fopen() on a crafted file. An attacker who can get a user or application to open a malicious file can cause a denial of service or limited disclosure of process memory.

Analysis

AI-generated

Technical impact

The vulnerability exists in HDF5’s H5O__chunk_deserialize() routine, where the declared message size is validated before the optional message header fields are decoded. Because the check does not account for up to four bytes of header data that precede the message body, a crafted HDF5 file can declare a message size that appears valid yet extends beyond the end of the chunk image. When the chunk’s decoder attempts to read the message’s callback data, it over-reads the heap allocation, potentially causing a crash (denial of service) or exposing a fragment of process memory.

Affected Systems

This flaw affects the HDF Group’s HDF5 library versions up to and including 2.2.0. Any installation that uses any of these versions and processes HDF5 files from untrusted or unauthenticated sources is susceptible. The issue is triggered during calls to H5Fopen(), which is the routine leveraged by applications to open HDF5 files.

Risk and Exploitability

The CVSS score of 1.9 indicates low severity. EPSS data is not available, and the vulnerability is not listed in CISA’s KEV catalog, suggesting limited exploitation in the wild. The attack vector requires an attacker to supply a malicious HDF5 file that is opened by an application, so impact is limited to environments that parse HDF5 files without additional controls. Nonetheless, the over-read could lead to a crash or minor memory disclosure if the heap contents contain sensitive data. Overall risk remains low but an update is recommended to mitigate the exposed condition.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to HDF5 2.2.1 or later where the size validation bug is fixed
  • If an upgrade is not possible, run HDF5 file parsing in a sandboxed environment and restrict the files that can be opened to those from trusted sources
  • Validate or checksum HDF5 files before calling H5Fopen and discard any that fail validation to avoid processing malformed headers

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': 6.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/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 H5O__chunk_deserialize() in src/H5Ocache.c. When decoding object header messages, the declared message size is checked against the end of the chunk image before the remainder of the message header (flags, and for version 2 object headers, the optional creation index) has been decoded. Because the message body begins after these fields, a message can start up to four bytes further into the chunk than the size check accounts for. A crafted HDF5 file can declare a message size that passes the check but extends past the end of the chunk image, causing the message’s decode callback, for example H5O__mtime_new_decode() in src/H5Omtime.c, to read beyond the heap allocation. The flaw is reachable during H5Fopen() on a crafted file. An attacker who can get a user or application to open a malicious file can cause a denial of service or limited disclosure of process memory.
Title Heap Buffer Over-read via Malformed Message Size in HDF5's H5O__chunk_deserialize
Weaknesses CWE-125
References
Metrics cvssV4_0

{'score': 1.9, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N/E:P'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
HDFG
Published
Updated
Nov 3, 2026, 5:55 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:32 PM