What’s Vulnerable › Vulnerabilities

CVE-2025-4435: Tarfile extracts filtered members when errorlevel=0

Description

When using a TarFile.errorlevel = 0 and extracting with a filter the documented behavior is that any filtered members would be skipped and not extracted. However the actual behavior of TarFile.errorlevel = 0 in affected versions is that the member would still be extracted and not skipped.

Affected products

How to fix

Upgrade to a fixed version: Python 3.10.18, 3.11.13, 3.12.11, 3.13.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-4435 or the next vulnerability affects your stack