Skip to main content

HDF5 CVE-2026-19027

| EUVDEUVD-2026-53678 MEDIUM
Out-of-bounds Read (CWE-125)
2026-08-05 HDFG GHSA-2pvh-qgr3-wp2r
6.9
CVSS 4.0 · Vendor: HDFG
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious HDF5 file with N-Bit filter params
  2. Delivery
    Deliver file to target pipeline or user
  3. Exploit
    User/tool invokes H5Dread on dataset
  4. Execution
    Unbounded index walks past heap chunk boundary
  5. Impact
    Crash (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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

HDF5 ≤2.3.0

Affected Packages

euvd hdf5 no fix

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

Vendor (HDFG) PRIMARY 6.9 MEDIUM
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
vuln.today AI 6.1 MEDIUM

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).

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 3.3 LOW
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
Red Hat 5.6 MEDIUM

Primary rating from Vendor (HDFG).

CVSS VectorVendor: HDFG

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Medium
widely used in scientific computing, HPC, and data science pipelines
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

More in Hdf5

View all
CVE-2018-13876 CRITICAL POC
9.8 Jul 10

An issue was discovered in the HDF HDF5 1.8.20 library. Rated critical severity (CVSS 9.8), this vulnerability is remote

CVE-2018-13874 CRITICAL POC
9.8 Jul 10

An issue was discovered in the HDF HDF5 1.8.20 library. Rated critical severity (CVSS 9.8), this vulnerability is remote

CVE-2018-13873 CRITICAL POC
9.8 Jul 10

An issue was discovered in the HDF HDF5 1.8.20 library. Rated critical severity (CVSS 9.8), this vulnerability is remote

CVE-2018-13872 CRITICAL POC
9.8 Jul 10

An issue was discovered in the HDF HDF5 1.8.20 library. Rated critical severity (CVSS 9.8), this vulnerability is remote

CVE-2018-13871 CRITICAL POC
9.8 Jul 10

An issue was discovered in the HDF HDF5 1.8.20 library. Rated critical severity (CVSS 9.8), this vulnerability is remote

CVE-2018-13870 CRITICAL POC
9.8 Jul 10

An issue was discovered in the HDF HDF5 1.8.20 library. Rated critical severity (CVSS 9.8), this vulnerability is remote

CVE-2018-13869 CRITICAL POC
9.8 Jul 10

An issue was discovered in the HDF HDF5 1.8.20 library. Rated critical severity (CVSS 9.8), this vulnerability is remote

CVE-2018-13868 CRITICAL POC
9.8 Jul 10

An issue was discovered in the HDF HDF5 1.8.20 library. Rated critical severity (CVSS 9.8), this vulnerability is remote

CVE-2018-13867 CRITICAL POC
9.8 Jul 10

An issue was discovered in the HDF HDF5 1.8.20 library. Rated critical severity (CVSS 9.8), this vulnerability is remote

CVE-2018-13866 CRITICAL POC
9.8 Jul 10

An issue was discovered in the HDF HDF5 1.8.20 library. Rated critical severity (CVSS 9.8), this vulnerability is remote

CVE-2017-17509 HIGH POC
8.8 Dec 11

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

CVE-2025-44904 HIGH POC
8.8 May 30

hdf5 v1.14.6 was discovered to contain a heap buffer overflow via the H5VM_memcpyvv function. Rated high severity (CVSS

Vendor 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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy