Path Traversal in Python
CVE-2007-4559
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.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.271, 98.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
7 public repositories with exploit or proof-of-concept code for this CVE:
- advanced-threat-research/Creosote (82 stars, last pushed 2022-09-23): Creosote is our solution to searching for the tarfile vulnerability described by CVE-2007-4559.
- depers-rus/CVE-2007-4559 (1 star, last pushed 2025-07-01)
- jithinodattu/CVE-2007-4559-lab (last pushed 2026-04-18)
- m0d0ri205/wargame-tarpioka (last pushed 2024-09-24): YISF 2024 CTF-Web (Directory Traversal via ".tar" file, CVE-2007-4559), easy
- luigigubello/trellix-tarslip-patch-bypass (last pushed 2024-05-03): Bypass for CVE-2007-4559 Trellix patch
- davidholiday/CVE-2007-4559 (last pushed 2023-09-12)
- Ooscaar/MALW (last pushed 2023-01-12): CVE-2007-4559 - Polemarch exploit
Also mentioned in 16 other repositories (alextamkin/dabs, ARPSyndicate/cvemon, ARPSyndicate/cve-scores, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- secunia.com/advisories/26623 (Broken Link, third-party-advisory)
- ADV-2007-3022 (vdb-entry, Broken Link)
- bugzilla.redhat.com/show_bug.cgi (Issue Tracking)
- [python-dev] 20070824 tarfile and directory traversal vulnerability (Vendor Advisory, mailing-list, Mailing List)
- [python-dev] 20070825 tarfile and directory traversal vulnerability (mailing-list, Exploit, Mailing List)
- GLSA-202309-06 (vendor-advisory)
- FEDORA-2024-d1f1084584 (vendor-advisory)
- FEDORA-2024-ebb3c95344 (vendor-advisory)
- FEDORA-2024-46374d2703 (vendor-advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/…
This CVE has public exploit evidence. See the latest CVEs with public exploits.