CVE-2025-4435
Tarfile extracts filtered members when errorlevel=0
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
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 flaw was found in CPython's tarfile module. This vulnerability allows unauthorized file extraction via crafted tar archives when TarFile.errorlevel=0, bypassing expected filtering mechanisms.
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.
These are all security issues fixed in the python314-3.14.0~b3-3.1 package on the GA media of openSUSE Tumbleweed.
CVSS Scores
SSVC
- Decision:Attend
Timeline
- 2025-05-08 CVE Reserved
- 2025-06-03 CVE Published
- 2025-07-05 EPSS Updated
- 2025-07-07 CVE Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-682: Incorrect Calculation
- CWE-706: Use of Incorrectly-Resolved Name or Reference
CAPEC
References (13)
URL | Tag | Source |
---|---|---|
https://github.com/python/cpython/issues/135034 | Issue Tracking |
URL | Date | SRC |
---|
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Python Software Foundation Search vendor "Python Software Foundation" | CPython Search vendor "Python Software Foundation" for product "CPython" | < 3.9.23 Search vendor "Python Software Foundation" for product "CPython" and version " < 3.9.23" | en |
Affected
| ||||||
Python Software Foundation Search vendor "Python Software Foundation" | CPython Search vendor "Python Software Foundation" for product "CPython" | >= 3.10.0 < 3.10.18 Search vendor "Python Software Foundation" for product "CPython" and version " >= 3.10.0 < 3.10.18" | en |
Affected
| ||||||
Python Software Foundation Search vendor "Python Software Foundation" | CPython Search vendor "Python Software Foundation" for product "CPython" | >= 3.11.0 < 3.11.13 Search vendor "Python Software Foundation" for product "CPython" and version " >= 3.11.0 < 3.11.13" | en |
Affected
| ||||||
Python Software Foundation Search vendor "Python Software Foundation" | CPython Search vendor "Python Software Foundation" for product "CPython" | >= 3.12.0 < 3.12.11 Search vendor "Python Software Foundation" for product "CPython" and version " >= 3.12.0 < 3.12.11" | en |
Affected
| ||||||
Python Software Foundation Search vendor "Python Software Foundation" | CPython Search vendor "Python Software Foundation" for product "CPython" | >= 3.13.0 < 3.13.4 Search vendor "Python Software Foundation" for product "CPython" and version " >= 3.13.0 < 3.13.4" | en |
Affected
|