CVE-2025-4435 Details
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.
A vulnerability exists in the Python tarfile module in versions 3.12 and later, allowing extraction filters to be bypassed. When using the TarFile.extract() or TarFile.extractall() methods with the filter parameter set to 'data' or 'tar', certain members can be extracted despite being filtered out. This issue is exacerbated in Python 3.14 and later, where the default filter is set to 'data', potentially leading to arbitrary file system writes outside the intended directory during extraction.
Upgrade to Python 3.12.11 or 3.14.4, where this vulnerability has been fixed. If an immediate upgrade is not possible, avoid extracting tar files with the 'data' or 'tar' filters, or implement a workaround by rejecting links that could traverse outside the extraction directory.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 3, 2025CISA-ADP
Assessed Jun 3, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-682 | Incorrect Calculation | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| Python | >= 3.12, < 3.12.11 >= 3.13, < 3.13.4 >= 3.14, < 3.14.0 |
CPE
Remediation
| |
Change History
10 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 31, 2026 | CVE Modified | [email protected] |
| Jul 30, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 3, 2025 | CVE Modified | [email protected] |
| Jun 3, 2025 | CVE Modified | [email protected] |
| Jun 3, 2025 | CVE Modified | CISA-ADP |
| Jun 3, 2025 | CVE Modified | [email protected] |
| Jun 3, 2025 | CVE Modified | [email protected] |
| Jun 3, 2025 | New CVE Received | [email protected] |
Volerion