Description
yt through 4.4.4 contains a code injection vulnerability that allows attackers to execute Python code by supplying a crafted con_args attribute in a ytdata HDF5 file. SavedDataset._parse_parameter_file() passes con_args to eval() unrestricted, so loading a malicious .h5 file with yt.load() runs attacker code as the user.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
yt-project yt
Default version status: unaffected
0 to ≤ 4.4.4affected
pkg:pypi/ytReferences
- https://github.com/yt-project/yt/issues/5641 ↗
- https://github.com/yt-project/yt/commit/ce997aebb89423a6f5d86c3bda24094e908d3c2d ↗
- https://github.com/yt-project/yt/blob/yt-4.4.4/yt/frontends/ytdata/data_structures.py#L52-L56 ↗
- https://www.vulncheck.com/advisories/yt-through-4.4.4-code-injection-via-con-args-eval-in-ytdata-hdf5 ↗