Three Ways One HDF5 Reader Runs Your Code
The h5io library's read_hdf5 function passed a stored timezone string to eval, imported modules by names taken from the file, and unpickled pandas-like nodes. An attacker could craft a malicious .h5 file that, when opened, executes arbitrary code with the victim's privileges.
Published on r3vpwnx.medium.com
eval, import-by-name, and unpickle, all reachable by opening a file (CVE-2026–120499)
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The file reader used eval, dynamic imports, and unpickling on values taken directly from the file without validation.
Impact
Opening a malicious file could execute arbitrary code with the privileges of the user who opened it.
What the attacker needed
Victim opens a malicious .h5 file
The fix
It was fixed in h5io 0.2.6.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
HDF5 is a file format for storing scientific data, and h5io is a Python library that reads it. The library trusted things written inside the file and used them in ways that let the file run code on your computer. So simply opening a file someone sent you could let them take over your machine.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.