2.0Low

CVE-2026-4360Tarfile.extract() doesn't fully respect filter parameter

Python Software Foundation CPython Published: (4 months ago)

Description

In the Tarfile.extract() function, the filter parameter is not passed properly when extracting hardlinks. An affected system that extracts content from untrusted tar files could end up writing files with an unexpected uid/gid despite the user passing filter='data' to the extract() function.

Weakness (CWE): CWE-281

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Python Software Foundation CPython < 3.10.21, 3.11.0 – < 3.11.16, 3.12.0 – < 3.12.14, 3.13.0 – < 3.13.15, 3.14.0 – < 3.14.7, 3.15.0a1 – < 3.15.0b4
python python < 3.1.5

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:python:python:*:*:*:*:*:*:*:* < 3.1.5