Skip to content
← Blog · · df00tech

PyTables Advisory: Auto-Unpickled HDF5 Attributes Enable RCE on File Open (CVE-2026-134019)

breaking ghsa pip CVE-2026-134019

GitHub Security Advisory GHSA-3r7g-mq96-7hhc, published 2026-11-30, discloses a remote code execution flaw in PyTables (the tables PyPI package), tracked as CVE-2026-134019 with a reported CVSS of 9.8 and a public proof-of-concept.

What was reported

According to the advisory, PyTables stores non-primitive Python objects as pickled HDF5 attributes. On read, it auto-unpickles them using a heuristic: any numpy.bytes_ attribute value ending in b'.' is assumed to be a pickle and passed to pickle.loads(). There is no allowlist and no safe unpickler. The vulnerable logic is attributed to tables/attributeset.py (the maybe_pickled heuristic and several pickle.loads() call sites reached via AttributeSet.__getattr__ and __getitem__). The advisory includes a working PoC on tables==3.11.1 where simply opening a crafted .h5 file and reading one attribute runs an attacker-chosen os.system command. Affected versions are listed as <= 3.12. Version 3.12 adds an allow_pickle=False opt-out but reportedly still unpickles automatically by default.

Why it matters for defenders

HDF5 is widely treated as an inert, code-free data format comparable to .npy or Parquet, so teams often do not vet .h5 files as untrusted input. The advisory notes that pandas.read_hdf() builds on PyTables and also triggers the behavior, which widens exposure. Data science pipelines, ML model and feature stores, notebooks, and any service that ingests HDF5 files from external or semi-trusted sources (uploads, shared datasets, third-party model artifacts) could be affected. Per the advisory, merely opening the file and reading a single metadata attribute is sufficient to execute code. No further interaction is required.

What defenders should watch for or do now

  • Inventory where tables (PyTables) or pandas.read_hdf()/HDFStore is used to open HDF5 files from users, uploads, partner feeds, or any source outside your own trust boundary.
  • Per the advisory, use the available mitigation for v3.12: pass allow_pickle=False to tables.open_file(), pandas.read_hdf(), or pandas.HDFStore(), or set tables.parameters.ALLOW_PICKLE = False globally for newly opened files, especially before processing untrusted .h5 files.
  • Treat .h5 file ingestion as a code execution risk going forward. Consider sandboxing or isolating processes that parse externally-sourced HDF5 files until a patched default ships.
  • At a hunting level, look for unexpected child processes (for example shell invocations) spawned by Python processes that handle HDF5, data-pipeline, or ML workloads shortly after a file-open or deserialization event, and audit logs for unusual .h5 file sources.
  • Track vendor guidance: the advisory states automatic unpickling is expected to be disabled by default in a future v3.13 release.

Developing intel

This is net-new intel from a same-day GHSA publication. Details on patch availability and default behavior in future PyTables releases may evolve. Full technical detail, the referenced proof-of-concept, and official mitigation guidance are available in the original advisory: GHSA-3r7g-mq96-7hhc.

Get new detections in your inbox

New ATT&CK coverage plus CISA KEV / CVE detection rules, roughly weekly. No spam, unsubscribe anytime.