h5io: Arbitrary code execution in read_hdf5 (CVE-2026-120499)
The h5io library before version 0.2.6 is vulnerable to arbitrary code execution via crafted HDF5 files that trigger unsafe eval, arbitrary imports, or insecure pickle deserialization during data loading.
CVE search metadata
CVE search record: CVE-2026-120499. Severity: high. CVSS: 7.8. KEV: no. Product: h5io (< 0.2.6). Brief: h5io: Arbitrary code execution in read_hdf5 (CVE-2026-120499). Brief link: https://feed.craftedsignal.io/briefs/2026-11-h5io-rce/
Triage facts
Revision 1- Applicability
- h5io (< 0.2.6)
- Evidence
- Unknown
- Severity
- High
- Action
- Elevated
- Sources
- 1 public source
- Freshness
- Revision 1Nov 5, 18:23 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- A2Roughly even chance
The h5io Python library, specifically in versions prior to 0.2.6, contains a code injection vulnerability within the read_hdf5() function. An attacker can craft a malicious HDF5 file containing specific node structures that, when processed, lead to arbitrary code execution. The vulnerability stems from three primary mechanisms:
- The timezone node is passed to eval() with builtins enabled.
- class or custom-object nodes allow for arbitrary module imports via _import_class().
- pd_dataframe or pd_series nodes contain pickled objects that are insecurely deserialized by pandas.
Impact
Successful exploitation allows for arbitrary code execution with the privileges of the application process that invokes the read_hdf5() function.
Recommendation
- Upgrade the h5io library to version 0.2.6 or later immediately.
- Audit applications that process externally sourced HDF5 files using h5io.
- Implement sandboxing or containerization for untrusted file processing workloads to limit the impact of code execution vulnerabilities.
Immediate actions
Upgrade h5io to version 0.2.6 or later in all software supply chains
Threat Hunt
Identify applications importing the h5io library that process untrusted HDF5 files
Data: Application dependency manifests, Runtime process command line arguments
Mitigations
Upgrade h5io to 0.2.6
CVE-2026-120499