CVE-2026-19028

HDF5 integer underflow in Fletcher32 filter leads to massive out-of-bounds read

Published Aug 5, 2026 CVSS 4.0 · 6.8 Medium EPSS < 1% KEV · Not listed
Description
H5Z__filter_fletcher32 in H5Zfletcher32.c in HDF5 prior to 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.

Analysis

AI-generated

Technical impact

Within H5Z__filter_fletcher32, the code calculates the data length to checksum by subtracting four bytes for the trailing checksum from the input buffer size but does not verify that the buffer is at least four bytes. This size_t underflow permits a chunk smaller than four bytes to produce a very large length, causing an out‑of‑bounds read in the Fletcher32 checksum routine and leading the application to crash. The result is a denial of service when the library reads a malicious HDF5 file containing such a corrupted chunk.

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

With a CVSS score of 6.8, the vulnerability is considered moderate. The EPSS score is less than 1 percent and the issue is not listed in CISA's KEV catalog. An attacker can trigger the underflow by supplying a crafted HDF5 file that includes a Fletcher32‑filtered chunk of fewer than four bytes; reading the file with H5Dread, such as through h5ls or h5dump, will cause the out‑of‑bounds read and crash the application.

Remediation

No solution or workaround provided in the CVE record.

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 October 7, 2026 at 08:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
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. H5Z__filter_fletcher32 in H5Zfletcher32.c in HDF5 prior to 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.
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/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 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'}

Weaknesses
  • CWE-125

    Out-of-bounds Read

  • CWE-1284

    Improper Validation of Specified Quantity in Input

  • CWE-190

    Integer Overflow or Wraparound

Sources

Status
PUBLISHED
Assigner
HDFG
Published
Updated
Oct 6, 2026, 8:32 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:15 PM