PyPI
CVE-2026-134019
PyTables: Remote code execution via auto-unpickled HDF5 attributes
- Severity
- Critical 9.8
- Published
- 30 Nov 2026
- Last changed
- 30 Nov 2026
- Added to UpHeron
- 30 Nov 2026
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Read data · Change data · Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Also known as
- GHSA-3r7g-mq96-7hhc
- Sources
- OSV.dev and GitHub
Description
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.
- maybe_pickled heuristic (~lines 326-330): any np.bytes_ attribute ending in b'.' is assumed to be a pickle.
- pickle.loads(value) at ~lines 345 / 358 / 361 / 374 / 377, reached from AttributeSet.getattr (~308) and AttributeSet.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.
Workarounds
v3.12 still unpickles automatically by default. For untrusted files, disable it per file:
or globally for newly opened files:
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.
Affected software
| Software | Affected versions |
|---|---|
tablesPyPI · osv:PyPI:tables |
|
Status in Debian
Debian builds fixes into its own packages, so a release is often fixed under an older version number than the one upstream names.
- 4 vulnerable
| Package | Debian release | Status |
|---|---|---|
| pytables | sidunstable | VulnerableNo fix yet. |
| 14forkytesting | VulnerableNo fix yet. | |
| 13trixiestable | VulnerableNo fix yet. | |
| 12bookwormoldstable | VulnerableNo fix yet. |
From Debian's security tracker for CVE-2026-134019 , read in the last 12 hours.
About tables
- Weekly downloads (PyPI)
- 474,023PyPI Stats, 30 Nov 2026
This is the only vulnerability in tables in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-134019
- GitHub Advisory Database https://github.com/advisories/GHSA-3r7g-mq96-7hhc