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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
h5io h5io
Default version status: unaffected
0.1.0 to < 0.2.6affected
pkg:pypi/h5ioReferences
- https://github.com/h5io/h5io/security/advisories/GHSA-vwvw-f6v4-w737 ↗
- https://github.com/h5io/h5io/commit/afff1d61b31790f8c27e6c577bb7703eb1883ddd ↗
- https://github.com/h5io/h5io/releases/tag/h5io-0.2.6 ↗
- https://github.com/h5io/h5io/blob/h5io-0.2.5/h5io/_h5io.py#L601-L604 ↗
- https://www.vulncheck.com/advisories/h5io-before-0.2.6-arbitrary-code-execution-via-read-hdf5 ↗