CVE-2026-19027

HDF5 out-of-bounds heap read in N-Bit filter decompression

Published Aug 5, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
The H5Z__nbit_decompress_one_byte, H5Z__nbit_decompress_one_nooptype, and H5Z__nbit_decompress_one_atomic functions in H5Znbit.c in HDF5
prior to 2.3.0 advance a read index into the compressed chunk buffer without bounding it against the buffer's actual size. This allows attackers to cause an out-of-bounds heap read, and in constrained cases disclosure of adjacent heap memory into decompressed dataset values, via a crafted HDF5 file whose N-Bit filter parameters describe more decompressed data than the stored compressed chunk actually contains, triggered via H5Dread, e.g. by the h5ls or h5repack tools.

Analysis

AI-generated

Technical impact

The vulnerability stems from the H5Z__nbit_decompress_one_* functions in H5Znbit.c, where a read index is incremented beyond the bounds of the compressed chunk buffer. This out‑of-bounds heap read is a CWE‑125 flaw that can allow a crafted HDF5 file to expose memory adjacent to the buffer, potentially leaking sensitive data within the decompressed dataset values. The flaw is triggered when tools such as h5ls or h5repack invoke H5Dread to process a file containing an N‑Bit filter that specifies more decompressed data than the actual compressed chunk provides.

Affected Systems

Affected versions are the official releases of HDF5 from the HDF Group up through version 2.3.0. The issue was discovered in the source file H5Znbit.c and applies to all builds that include the N‑Bit filter implementation in those releases.

Risk and Exploitability

With a CVSS score of 6.9, the vulnerability falls into the moderate severity band. The EPSS score of 0.0018 indicates a very low exploitation probability, and the flaw is not listed in the CISA KEV catalog, suggesting a lower likelihood of widespread exploitation at present. However, an attacker who can supply a malicious HDF5 file to a system that performs H5Dread—such as a user running h5ls, h5repack, or a library that loads arbitrary files—could read beyond the intended buffer boundaries and potentially retrieve confidential heap content. The attack requires no privilege escalation but relies on the ability to process or import the crafted file.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update HDF5 to a patched version (e.g., release 2.3.1 or later).
  • If updating immediately is not possible, disable or remove the N‑Bit filter from datasets before loading untrusted files.
  • Validate all HDF5 files against a whitelist or sanitize them before invoking H5Dread to ensure they originate from trusted sources.

Generated by OpenCVE AI on October 7, 2026 at 08:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description The H5Z__nbit_decompress_one_byte, H5Z__nbit_decompress_one_nooptype, and H5Z__nbit_decompress_one_atomic functions in H5Znbit.c in HDF5 through 2.3.0 advance a read index into the compressed chunk buffer without bounding it against the buffer's actual size. This allows attackers to cause an out-of-bounds heap read, and in constrained cases disclosure of adjacent heap memory into decompressed dataset values, via a crafted HDF5 file whose N-Bit filter parameters describe more decompressed data than the stored compressed chunk actually contains, triggered via H5Dread, e.g. by the h5ls or h5repack tools. The H5Z__nbit_decompress_one_byte, H5Z__nbit_decompress_one_nooptype, and H5Z__nbit_decompress_one_atomic functions in H5Znbit.c in HDF5 prior to 2.3.0 advance a read index into the compressed chunk buffer without bounding it against the buffer's actual size. This allows attackers to cause an out-of-bounds heap read, and in constrained cases disclosure of adjacent heap memory into decompressed dataset values, via a crafted HDF5 file whose N-Bit filter parameters describe more decompressed data than the stored compressed chunk actually contains, triggered via H5Dread, e.g. by the h5ls or h5repack tools.
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Hdfgroup
Hdfgroup hdf5
Vendors & Products Hdfgroup
Hdfgroup hdf5
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description The H5Z__nbit_decompress_one_byte, H5Z__nbit_decompress_one_nooptype, and H5Z__nbit_decompress_one_atomic functions in H5Znbit.c in HDF5 through 2.3.0 advance a read index into the compressed chunk buffer without bounding it against the buffer's actual size. This allows attackers to cause an out-of-bounds heap read, and in constrained cases disclosure of adjacent heap memory into decompressed dataset values, via a crafted HDF5 file whose N-Bit filter parameters describe more decompressed data than the stored compressed chunk actually contains, triggered via H5Dread, e.g. by the h5ls or h5repack tools.
Title HDF5 out-of-bounds heap read in N-Bit filter decompression
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
Oct 6, 2026, 8:33 PM
Reserved
Aug 5, 2026, 10:14 PM
Status
Awaiting Analysis
Published
Aug 6, 2026, 12:16 AM
Modified
Oct 23, 2026, 9:10 PM
Severity
Moderate
Public date
Aug 5, 2026, 11:12 PM