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.
Published: 2026-08-05
Score: 6.9 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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. No EPSS score is provided, 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.

Generated by OpenCVE AI on August 6, 2026 at 00:21 UTC.

Remediation

No vendor fix or workaround currently provided.

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 August 6, 2026 at 00:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 05 Aug 2026 23:30:00 +0000

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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: HDFG

Published:

Updated: 2026-08-05T23:12:20.658Z

Reserved: 2026-08-05T22:14:41.114Z

Link: CVE-2026-19027

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-06T00:30:03Z

Weaknesses