Description
HENDRICS 6.0 through 8.5.1 contains an eval injection vulnerability in read_from_netcdf() in hendrics/io.py that passes NetCDF boolean string values to eval(). Attackers can craft a .nc file whose variable value is "__bool__" followed by a Python expression to execute code when users load it via load_data(), load_events(), or HEN* tools.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
StingraySoftware HENDRICS
Default version status: unaffected
6.0 to ≤ 8.5.1affected
pkg:pypi/hendricsReferences
- https://github.com/StingraySoftware/HENDRICS/issues/207 ↗
- https://github.com/StingraySoftware/HENDRICS/pull/208 ↗
- https://github.com/StingraySoftware/HENDRICS/commit/2c17a6360f8a06e00e59c565cb722062f50b2d1e ↗
- https://github.com/StingraySoftware/HENDRICS/blob/49262b133217a9369ce8db8b2a63310e2fe61758/hendrics/io.py#L415-L417 ↗
- https://www.vulncheck.com/advisories/hendrics-6.0-through-8.5.1-code-execution-via-read-from-netcdf-eval-injection ↗