CVE-2026-19025
Received Received - Intake

HDF5 Divide-by-Zero in H5O__layout_decode via Mismatched Chunk-Dataspace Ranks

Vulnerability report for CVE-2026-19025, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-05

Last updated on: 2026-08-05

Assigner: 0253b833-3e77-4dfe-9d57-17db1a2f0a74

Description

H5O__layout_decode in H5Olayout.c in HDF5 through 2.3.0 does not validate that a chunked dataset's stored chunk-layout dimensionality matches its dataspace rank when an existing dataset is opened, whereas this check is performed only at dataset-creation time. This allows attackers to cause a denial of service (divide-by-zero and application crash in H5S__hyper_iter_get_seq_list in src/H5Shyper.c) via a crafted HDF5 file with mismatched chunk/dataspace ranks that is opened and read via H5Dopen2 and H5Dread, e.g. by the h5repack tool.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-05
Last Modified
2026-08-05
Generated
2026-08-06
AI Q&A
2026-08-06
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
hdf_group hdf5 to 2.3.0 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-369 The product divides a value by zero.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in HDF5 through version 2.3.0. It occurs when a chunked dataset's stored chunk-layout dimensionality does not match its dataspace rank during dataset opening. The check for this mismatch is only performed at dataset creation time, not when opening an existing dataset. This allows attackers to exploit the issue by providing a crafted HDF5 file with mismatched chunk and dataspace ranks. When such a file is opened and read using functions like H5Dopen2 and H5Dread, it triggers a divide-by-zero error in H5S__hyper_iter_get_seq_list, causing the application to crash.

Detection Guidance

This vulnerability can be detected by checking for crashes or errors when opening or reading HDF5 files with mismatched chunk/dataspace ranks using tools like h5repack. Monitor for divide-by-zero errors in H5S__hyper_iter_get_seq_list during file operations.

Impact Analysis

This vulnerability can lead to denial-of-service conditions. If you open and read a maliciously crafted HDF5 file using tools like h5repack, the application may crash due to a divide-by-zero error. This could disrupt services relying on HDF5 for data storage and processing, potentially causing data unavailability or loss of functionality.

Mitigation Strategies

Update HDF5 to a version beyond 2.3.0 where the validation is properly enforced. Avoid opening untrusted HDF5 files with tools like h5repack until patched. Implement file integrity checks before processing HDF5 datasets.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-19025. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart