CVE-2026-141593: HENDRICS 6.0 through 8.5.1 Code Execution via read_from_netcdf() Eval Injection
HENDRICS 6.0 through 8.5.1 contains an eval injection vulnerability in readfromnetcdf() 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 loaddata(), loadevents(), or HEN tools.
Affected Software
Event History
Frequently Asked Questions
What must an attacker do to trigger this issue?
An attacker must provide a crafted NetCDF (.nc) file and convince a user to load it through load_data(), load_events(), or HEN* tools. Exploitation occurs when the crafted boolean string value is processed by read_from_netcdf().
What can be done if an update cannot be applied immediately?
Do not load NetCDF files from untrusted or unknown sources using the affected HENDRICS loading functions or HEN* tools. Treat externally supplied .nc files as potentially malicious until they can be validated or handled in an isolated environment.