Description
H5Z__filter_fletcher32 in H5Zfletcher32.c in HDF5 through 2.3.0 computes the data length to checksum by subtracting the 4-byte trailing checksum size from the input buffer size without checking that the buffer is at least 4 bytes, allowing a size_t underflow. This allows attackers to cause a denial of service (massively out-of-bounds read and application crash in H5_checksum_fletcher32) via a crafted HDF5 file with a Fletcher32-filtered chunk smaller than 4 bytes, triggered via H5Dread, e.g. by the h5ls or h5dump tools.
Published: 2026-08-05
Score: 6.8 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw originates in the Fletcher32 filter implementation in HDF5 when calculating the amount of data to checksum by subtracting a checksum length from the buffer size. The code fails to ensure the buffer is at least four bytes, which allows a size_t underflow. When a chunk has fewer than four bytes, this produces a very large length causing an out‑of‑bounds read in the checksum routine and can crash the application. This leads to a denial of service when the library processes a maliciously crafted HDF5 file.

Affected Systems

The HDF Group's HDF5 library, versions 2.3.0 and earlier, contain the vulnerable code. The issue was disclosed in 2026 and affects built‑in tools such as h5ls and h5dump as well as any software that uses this library to read HDF5 files.

Risk and Exploitability

The CVSS score of 6.8 indicates moderate severity. No EPSS score is available, and the vulnerability is not currently listed in CISA's KEV catalog. The attack vector is likely local or remote based on file consumption; the adversary must supply a malicious HDF5 file containing a Fletcher32‑filtered chunk smaller than four bytes. Reading such a file with H5Dread (for example, via h5ls or h5dump) triggers the underflow and out‑of‑bounds read, resulting in a crash.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the HDF5 library to a version that contains the fix for the Fletcher32 filter (for example, by applying the patch introduced in pull request 6497).
  • Validate the size of Fletcher32‑filtered chunks before they are processed, ensuring each chunk is at least four bytes to prevent the out‑of‑bounds read.
  • Restrict the processing of untrusted HDF5 files or disable the Fletcher32 filter in environments where the library cannot be updated immediately.

Generated by OpenCVE AI on August 6, 2026 at 00:20 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 H5Z__filter_fletcher32 in H5Zfletcher32.c in HDF5 through 2.3.0 computes the data length to checksum by subtracting the 4-byte trailing checksum size from the input buffer size without checking that the buffer is at least 4 bytes, allowing a size_t underflow. This allows attackers to cause a denial of service (massively out-of-bounds read and application crash in H5_checksum_fletcher32) via a crafted HDF5 file with a Fletcher32-filtered chunk smaller than 4 bytes, triggered via H5Dread, e.g. by the h5ls or h5dump tools.
Title HDF5 integer underflow in Fletcher32 filter leads to massive out-of-bounds read
Weaknesses CWE-125
CWE-1284
CWE-190
References
Metrics cvssV4_0

{'score': 6.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/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:15:09.580Z

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

Link: CVE-2026-19028

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
  • CWE-125

    Out-of-bounds Read

  • CWE-1284

    Improper Validation of Specified Quantity in Input

  • CWE-190

    Integer Overflow or Wraparound