CVE-2026-120499

h5io before 0.2.6 Arbitrary Code Execution via read_hdf5

Published Nov 5, 2026 CVSS 4.0 · 8.5 High EPSS < 1% KEV · Not listed
Description
h5io before 0.2.6 contains a code injection vulnerability in read_hdf5() that allows attackers to execute arbitrary code by supplying a crafted HDF5 file. Attackers can store Python code in a node titled timezone, which _triage_read() passes to eval() with builtins reachable, name an arbitrary module in class or custom-object nodes that _import_class() imports, or place pickled objects in pd_dataframe or pd_series nodes that pandas deserializes on read.

Analysis

AI-generated

Technical impact

h5io suffers a code injection flaw in its read_hdf5() function. The library passes Python code stored in a HDF5 "timezone" node to eval() with builtins available, imports arbitrary modules when encountering a class or custom-object node, and deserializes pickled pandas objects from pd_dataframe or pd_series nodes. When the vulnerable function processes a maliciously crafted HDF5 file, the embedded code executes under the privileges of the process that imports the library, allowing an attacker to gain full control of the system and compromise data integrity.

Affected Systems

Any installation of the h5io Python package older than version 0.2.6 is vulnerable. Users who use h5io to read external or untrusted HDF5 files in data pipelines, scientific workflows, or analysis scripts could be exposed.

Risk and Exploitability

The CVSS score of 8.5 indicates high severity. The EPSS score is unavailable, so the exact exploitation probability cannot be quantified. The likely attack vector is local file tampering or gain of code execution when untrusted files are processed by read_hdf5, a scenario that is inferred from the description, but that inference is not directly stated in the CVE data. The vulnerability is not listed in the CISA KEV catalog, but it remains a serious risk for any environment that accepts or processes external HDF5 files.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the h5io package to version 0.2.6 or later, which removes the vulnerable eval and import logic.
  • Configure the application to accept HDF5 files only from trusted, authenticated sources and reject or quarantine files from unknown origins.
  • If an immediate upgrade is not feasible, restrict the read_hdf5 call to a sandboxed environment or redesign the workflow to avoid executing user-supplied code, such as by removing eval usage and untrusted deserialization.

Generated by OpenCVE AI on November 6, 2026 at 14:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared H5io
H5io h5io
Vendors & Products H5io
H5io h5io
Type Values Removed Values Added
Description h5io before 0.2.6 contains a code injection vulnerability in read_hdf5() that allows attackers to execute arbitrary code by supplying a crafted HDF5 file. Attackers can store Python code in a node titled timezone, which _triage_read() passes to eval() with builtins reachable, name an arbitrary module in class or custom-object nodes that _import_class() imports, or place pickled objects in pd_dataframe or pd_series nodes that pandas deserializes on read.
Title h5io before 0.2.6 Arbitrary Code Execution via read_hdf5
Weaknesses CWE-502
CWE-95
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-502

    Deserialization of Untrusted Data

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

  • CWE-95

    Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 5, 2026, 6:30 PM
Reserved
Nov 2, 2026, 3:06 PM
Status
Deferred
Published
Nov 5, 2026, 5:18 PM
Modified
Nov 12, 2026, 9:36 PM
Severity
Important
Public date
Nov 5, 2026, 4:55 PM