CVE-2026-134019: PyTables: Remote code execution via auto-unpickled HDF5 attributes
PyTables is a Python package to manage extremely large amounts of data. In 3.11.1 and earlier, tables/attributeset.py treats a NumPy bytes scalar ending in a period as a pickled Python object and calls pickle.loads() when the attribute is accessed through AttributeSet.getattr or AttributeSet.getitem. Opening an attacker-controlled HDF5 file and reading an affected metadata attribute can execute attacker-controlled code in the consumer’s process. No fixed version is available as of this review.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using PyTables 3.11.1 or earlier are exposed if they open attacker-controlled HDF5 files and access a metadata attribute represented as an affected NumPy bytes scalar. The code executes in the process that reads the attribute.
Does merely opening a malicious HDF5 file trigger code execution?
The affected behavior occurs when an affected metadata attribute is read through AttributeSet.__getattr__ or AttributeSet.__getitem__. The provided information does not establish that opening the file alone is sufficient.
What does an attacker need to exploit this vulnerability?
An attacker needs to provide a crafted HDF5 file containing a malicious affected metadata attribute and have a consumer open that file and read the attribute. No authentication, user interaction, or other privileges are indicated by the supplied CVSS vector.
Is a patched PyTables version available?
No fixed version was available as of the review. Avoid opening untrusted HDF5 files with affected PyTables versions, or avoid accessing their metadata attributes until a fix is available.