Threat Advisory

PyTables Auto-Unpickling Lets Attackers Execute Code Via HDF5 Files

Threat: Vulnerability
Targeted Region: Global
Targeted Sector: Technology & IT
Criticality: Critical
[subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

Multiple security vulnerabilities have been identified in PyTables, a Python library for HDF5 data files, affecting version 3.11.1. The issues involve unsafe handling of untrusted data files and can allow remote code execution when a malicious file is opened. The overall risk is critical because an attacker can supply a crafted data file and cause arbitrary code execution in the processing environment.

CVE-2026-134019: PyTables automatically deserializes certain HDF5 metadata attributes using Python pickle when a file is opened and its metadata is read, without a safe deserializer or allowlist. An attacker who can place a crafted file in a location read by the application can execute arbitrary code with the privileges of the process.[/subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

Multiple security vulnerabilities have been identified in PyTables, a Python library for HDF5 data files, affecting version 3.11.1. The issues involve unsafe handling of untrusted data files and can allow remote code execution when a malicious file is opened. The overall risk is critical because an attacker can supply a crafted data file and cause arbitrary code execution in the processing environment.

CVE-2026-134019: PyTables automatically deserializes certain HDF5 metadata attributes using Python pickle when a file is opened and its metadata is read, without a safe deserializer or allowlist. An attacker who can place a crafted file in a location read by the application can execute arbitrary code with the privileges of the process.[emaillocker id="1283"]

CVE-2019-6446: A prior vulnerability in a related scientific computing library's data-loading functionality allowed untrusted data files to trigger automatic deserialization of pickled objects. An attacker who can supply a crafted data file can cause code execution when the file is loaded.

These vulnerabilities collectively present a critical risk to systems that open untrusted data files, especially data pipelines, machine learning services, and notebook environments. Users who process files from untrusted sources are most at risk. The general action is to recognize that untrusted data files may be malicious.

RECOMMENDATIONS:

  • We recommend you to update PyTables to the latest available version.
  • We recommend you to use PyTables v3.12 with allow_pickle=False for untrusted files.
  • We recommend you to use pandas.read_hdf with allow_pickle=False for untrusted HDF5 files.

REFERENCES:

The following reports contain further technical details:

[/emaillocker]
crossmenu