What’s Vulnerable › Vulnerabilities

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

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.

Affected products

How to fix

Upgrade to a fixed version: Python 3.1.5. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-4360 or the next vulnerability affects your stack