Summary
PyTables 3.11.1 and earlier unpickle certain HDF5 file attributes when they are accessed, which can allow code execution if a crafted file is opened. The source rates it critical (CVSS 3.1: 9.8) and states that no fixed version is available.
What happened
In PyTables 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. The weakness is classified as CWE-502 (deserialization of untrusted data).
Why it matters
The source describes that code could run inside the process of the application reading the file. The CVSS 3.1 score is 9.8 (vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), assigned by CNA:GitHub_M, and the severity is critical. CISA's KEV catalog does not list this vulnerability as exploited; the source provides no indication of active exploitation.
Affected products and versions
PyTables (vendor: PyTables): versions <= 3.11.1.
| Product | Versions | Fixed in |
|---|---|---|
| PyTables PyTables | <= 3.11.1 | — |
Action recommended by the source
The source states that no fixed version is available as of the review and does not specify a concrete mitigation. Readers can follow the vendor advisory (GHSA-3r7g-mq96-7hhc), the GitHub confirmation and the project's release notes for updates: https://github.com/PyTables/PyTables/security/advisories/GHSA-3r7g-mq96-7hhc
Sources and references
- https://github.com/PyTables/PyTables/security/advisories/GHSA-3r7g-mq96-7hhc — CVE Program
- https://github.com/PyTables/PyTables/commit/8ae7154191676c2ab12ba36450972d0be77efde3 — CVE Program
- https://github.com/PyTables/PyTables/blob/967fb5120dffd7768bf7f3fec14b04f169335ec5/RELEASE_NOTES.rst#L156-L178 — CVE Program
Weaknesses (CWE): CWE-502
Relevant change history
Published
Advisory published.