CVE-2007-4559
python: tarfile module directory traversal
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
6Exploited in Wild
-Decision
Descriptions
Directory traversal vulnerability in the (1) extract and (2) extractall functions in the tarfile module in Python allows user-assisted remote attackers to overwrite arbitrary files via a .. (dot dot) sequence in filenames in a TAR archive, a related issue to CVE-2001-1267.
Vulnerabilidad de salto de directorio en las funciones (1) extract y (2) extractall en el módulo tarfile en Python permite a atacantes remotos con la intervención del usuario sobrescribir archivos de su elección a través de la secuencia ..(punto punto) en nombres de archivos en archivos TAR, un asunto relacionado es CVE-2001-1267.
A flaw was found in the Python tarfile module. Extracting a crafted TAR archive with the tarfile.extract or tarfile.extractall functions could lead to a directory traversal vulnerability, resulting in overwrite of arbitrary files.
An update for python3 is now available for Red Hat Enterprise Linux 8.6 Extended Update Support. Issues addressed include denial of service, traversal, and use-after-free vulnerabilities.
CVSS Scores
SSVC
- Decision:Attend
Timeline
- 2007-08-27 CVE Reserved
- 2007-08-28 CVE Published
- 2022-12-11 First Exploit
- 2025-01-17 CVE Updated
- 2025-05-04 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CAPEC
References (15)
URL | Tag | Source |
---|---|---|
http://secunia.com/advisories/26623 | Broken Link | |
http://www.vupen.com/english/advisories/2007/3022 | Broken Link |
URL | Date | SRC |
---|---|---|
https://github.com/davidholiday/CVE-2007-4559 | 2023-09-12 | |
https://github.com/advanced-threat-research/Creosote | 2024-08-12 | |
https://github.com/Ooscaar/MALW | 2022-12-11 | |
https://github.com/luigigubello/trellix-tarslip-patch-bypass | 2024-05-03 | |
https://github.com/JamesDarf/tarpioka | 2024-09-24 | |
http://mail.python.org/pipermail/python-dev/2007-August/074292.html | 2025-01-17 |
URL | Date | SRC |
---|
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Python Search vendor "Python" | Python Search vendor "Python" for product "Python" | < 3.6.16 Search vendor "Python" for product "Python" and version " < 3.6.16" | - |
Affected
| ||||||
Python Search vendor "Python" | Python Search vendor "Python" for product "Python" | >= 3.7.0 < 3.8.17 Search vendor "Python" for product "Python" and version " >= 3.7.0 < 3.8.17" | - |
Affected
| ||||||
Python Search vendor "Python" | Python Search vendor "Python" for product "Python" | >= 3.9.0 < 3.9.17 Search vendor "Python" for product "Python" and version " >= 3.9.0 < 3.9.17" | - |
Affected
| ||||||
Python Search vendor "Python" | Python Search vendor "Python" for product "Python" | >= 3.10.0 < 3.10.12 Search vendor "Python" for product "Python" and version " >= 3.10.0 < 3.10.12" | - |
Affected
| ||||||
Python Search vendor "Python" | Python Search vendor "Python" for product "Python" | >= 3.11.0 < 3.11.4 Search vendor "Python" for product "Python" and version " >= 3.11.0 < 3.11.4" | - |
Affected
|