Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious HDF5 file with N-Bit filter params
-
DeliveryDeliver file to target pipeline or user
-
ExploitUser/tool invokes H5Dread on dataset
-
ExecutionUnbounded index walks past heap chunk boundary
-
ImpactCrash (DoS) or heap memory leaks into dataset output
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that (1) the target application or tool opens a crafted HDF5 file containing a dataset with the N-Bit compression filter applied, (2) H5Dread is called on that dataset - which occurs automatically when using h5ls or h5repack - and (3) the N-Bit filter parameters in the file describe more decompressed data than the compressed chunk actually stores. The CVSS vector UI:P confirms that a user or process must actively open/read the file, so exploitation is not fully automated without social engineering or pipeline injection. No authentication or special privileges are required to trigger the vulnerability once file delivery is achieved (PR:N). Exploitation is limited to applications linked against HDF5 that process N-Bit-filtered datasets; HDF5 files without the N-Bit filter are not vulnerable. Network-based remote exploitation is not applicable - the attack surface is file delivery, not a listening service. |
| Impact | The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H) indicates local file-delivery attack surface with passive user interaction and high availability impact alongside low confidentiality impact. The most significant real-world risk is a denial-of-service crash (VA:H) in any application or pipeline that reads HDF5 files from untrusted sources - scientific data portals, ML data loaders, batch processing jobs using h5ls or h5repack are natural targets. The memory disclosure angle (VC:L) is present but constrained: leaked heap contents appear inside decompressed dataset values rather than being returned directly to the attacker, requiring attacker-controlled read-back of the output. EPSS data was not provided in the input; without it, exploitation probability is inferred as moderate-low based on the local/UI:P vector and the absence of KEV status and public POC. This is a realistic-priority issue for scientific computing pipelines ingesting externally sourced HDF5 files, but not a network-exploitable internet-facing vulnerability. Organizations that only process internally generated, trusted HDF5 files face minimal real-world risk. |
| Exploit ScenarioDerived | An attacker crafts a malicious HDF5 file whose N-Bit filter metadata claims a larger decompressed element count than the compressed chunk actually contains, then delivers it to a victim organization's data-ingestion pipeline or scientific data portal. When a researcher or automated job runs h5ls or h5repack on the file, H5Dread invokes the vulnerable N-Bit decompression path, the unbounded index walks off the end of the heap-allocated chunk buffer, causing the process to crash (denial of service) or to return heap memory adjacent to the chunk into the decompressed dataset - which an attacker with read-back access to the output could inspect for sensitive in-process data. No public POC was identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 05, 2026
Out-of-bounds heap read in HDF5's N-Bit filter decompression affects all versions through 2.3.0, allowing an attacker who can deliver a crafted HDF5 file to a user or automated pipeline to trigger application crashes and, in constrained cases, leak adjacent heap memory contents into decompressed dataset values. The three affected functions - H5Z__nbit_decompress_one_byte, H5Z__nbit_decompress_one_nooptype, and H5Z__nbit_decompress_one_atomic - advance a buffer read index without bounding it against the actual compressed chunk size, exploitable whenever H5Dread is invoked, including via common tools like h5ls and h5repack. No public exploit code has been identified at time of analysis, and this vulnerability is not listed in the CISA KEV catalog.
RemediationAI
Apply the upstream fix from GitHub PR #6497 (https://github.com/HDFGroup/hdf5/pull/6497), which adds buffer bounds validation throughout the N-Bit decompression path and hardens the cd_values parameter check. Note that this is a GitHub pull request and not a tagged release - a released patched version number was not independently confirmed from the available data; monitor the HDF Group release page and the referenced issues (#6489, #6492) for a formal release. As a compensating control where patching is not immediately possible, restrict the processing of externally sourced or untrusted HDF5 files: disable or sandbox tools such as h5ls and h5repack when operating on untrusted input, enforce file-origin allowlisting in data pipelines, and consider running HDF5 readers in isolated processes or containers with memory limits to contain crash impact. Disabling the N-Bit filter programmatically at the application layer (if dataset creation is under your control) eliminates the vulnerable code path entirely, though this is impractical for read-only consumer scenarios.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
HDF5 (Hierarchical Data Format version 5) is a data model and file format library used extensively in scientific computing, data science, and high-performance computing. The N-Bit filter (H5Znbit.c) is a dataset compression filter that packs integer or floating-point data into fewer bits to reduce storage. During decompression via H5Dread, the filter iterates over compressed chunk bytes using an index variable (j) and bit-length counter (buf_len), but the original code never compared j against the actual buffer size - it could read arbitrarily beyond the chunk boundary into adjacent heap memory. CWE-125 (Out-of-bounds Read) is the root cause: the filter trusted that the N-Bit filter parameters (cd_values) correctly described the data volume, without validating that the compressed chunk was large enough to satisfy those parameters. The fix in PR #6497 propagates a buffer_size argument through all three decompression functions, adds a H5Z_NBIT_PARMS_AVAIL bounds macro, and also hardens the cd_values NULL/length check (rejecting arrays shorter than the mandatory 5-element header). The same PR also fixes a related Fletcher32 filter integer underflow. Affected CPE: cpe:2.3:a:the_hdf_group:hdf5:*:*:*:*:*:*:*:*.
Know when Hdf5 gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
File must be locally opened by a user or tool (AV:L, UI:R); no privileges needed to deliver a file (PR:N); heap disclosure is limited (C:L) and crashes are reliable (A:H).
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
Primary rating from Vendor (HDFG).
CVSS VectorVendor: HDFG
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
An issue was discovered in the HDF HDF5 1.8.20 library. Rated critical severity (CVSS 9.8), this vulnerability is remote
An issue was discovered in the HDF HDF5 1.8.20 library. Rated critical severity (CVSS 9.8), this vulnerability is remote
An issue was discovered in the HDF HDF5 1.8.20 library. Rated critical severity (CVSS 9.8), this vulnerability is remote
An issue was discovered in the HDF HDF5 1.8.20 library. Rated critical severity (CVSS 9.8), this vulnerability is remote
An issue was discovered in the HDF HDF5 1.8.20 library. Rated critical severity (CVSS 9.8), this vulnerability is remote
An issue was discovered in the HDF HDF5 1.8.20 library. Rated critical severity (CVSS 9.8), this vulnerability is remote
An issue was discovered in the HDF HDF5 1.8.20 library. Rated critical severity (CVSS 9.8), this vulnerability is remote
An issue was discovered in the HDF HDF5 1.8.20 library. Rated critical severity (CVSS 9.8), this vulnerability is remote
An issue was discovered in the HDF HDF5 1.8.20 library. Rated critical severity (CVSS 9.8), this vulnerability is remote
An issue was discovered in the HDF HDF5 1.8.20 library. Rated critical severity (CVSS 9.8), this vulnerability is remote
In HDF5 1.10.1, there is an out of bounds write vulnerability in the function H5G__ent_decode_vec in H5Gcache.c in libhd
hdf5 v1.14.6 was discovered to contain a heap buffer overflow via the H5VM_memcpyvv function. Rated high severity (CVSS
Same weakness CWE-125 – Out-of-bounds Read
View allSame technique Buffer Overflow
View allVendor StatusVendor
SUSE
Severity: Low| Product | Status |
|---|---|
| SUSE Linux Enterprise Module for Package Hub 15 SP7 | Affected |
| SUSE Linux Enterprise High Performance Computing 12 SP5 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Module for HPC 12 | Affected |
| SUSE Linux Enterprise Server 12 SP5 | Affected |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Affected |
| SUSE Linux Enterprise Server for SAP Applications 12 SP5 | Affected |
| SUSE Linux Enterprise High Performance Computing 12 SP2 | Affected |
| SUSE Linux Enterprise High Performance Computing 12 SP3 | Affected |
| SUSE Linux Enterprise High Performance Computing 12 SP4 | Affected |
| SUSE Linux Enterprise Server 12 SP2 | Affected |
| SUSE Linux Enterprise Server 12 SP3 | Affected |
| SUSE Linux Enterprise Server 12 SP4 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 12 SP2 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 12 SP3 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 12 SP4 | Affected |
EUVD-2026-53678
GHSA-2pvh-qgr3-wp2r
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB