{"id":"CVE-2007-4559","published":"2007-08-28T00:00:00Z","modified":"2025-01-17T14:48:23Z","title":"Directory traversal vulnerability in the (1) extract and (2) extractall functions in the tarfile module in Python…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.27095,"percentile":0.98093,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"http://secunia.com/advisories/26623","tags":["third-party-advisory"]},{"url":"http://www.vupen.com/english/advisories/2007/3022","tags":["vdb-entry"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=263261","tags":[]},{"url":"http://mail.python.org/pipermail/python-dev/2007-August/074290.html","tags":["mailing-list"]},{"url":"http://mail.python.org/pipermail/python-dev/2007-August/074292.html","tags":["mailing-list"]},{"url":"https://security.gentoo.org/glsa/202309-06","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FI55PGL47ES3OU2FQPGEHOI2EK3S2OBH/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CVBB7NU3YIRRDOKLYVN647WPRR3IAKR6/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KA4Z44ZAI4SY7THCFBUDNT5EEFO4XQ3A/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CVBB7NU3YIRRDOKLYVN647WPRR3IAKR6/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FI55PGL47ES3OU2FQPGEHOI2EK3S2OBH/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KA4Z44ZAI4SY7THCFBUDNT5EEFO4XQ3A/","tags":[]}],"priority":{"score":31.5,"factors":[{"name":"EPSS percentile","points":19.62},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.86}]},"exploitSources":{"pocGithub":{"count":5,"skipped":2,"earliest":"2022-09-20","earliestUrl":"https://github.com/advanced-threat-research/Creosote","repos":[{"name":"advanced-threat-research/Creosote","url":"https://github.com/advanced-threat-research/Creosote","stars":82,"created":"2022-09-20"},{"name":"depers-rus/CVE-2007-4559","url":"https://github.com/depers-rus/CVE-2007-4559","stars":1,"created":"2025-07-01"},{"name":"Ooscaar/MALW","url":"https://github.com/Ooscaar/MALW","stars":0,"created":"2022-10-21"},{"name":"luigigubello/trellix-tarslip-patch-bypass","url":"https://github.com/luigigubello/trellix-tarslip-patch-bypass","stars":0,"created":"2024-05-03"},{"name":"m0d0ri205/wargame-tarpioka","url":"https://github.com/m0d0ri205/wargame-tarpioka","stars":0,"created":"2024-07-07"}]},"first":{"date":"2022-09-20","source":"PoC-in-GitHub","url":"https://github.com/advanced-threat-research/Creosote"},"provenance":"source"},"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2025-01-17T14:48:13.204984Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"The directory traversal flaw lies in the extract and extractall functions of Python's tarfile module, which fail to restrict filenames inside TAR archives that contain \"..\" sequences. An attacker can overwrite arbitrary files on the system by getting a user to process a crafted TAR archive, so no authentication is needed, but user interaction is required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T00:17:25Z"},"euvd":{"id":"EUVD-2007-4541","exploited":false,"provenance":"source"},"lineage":{"parents":[{"from":"CVE-2001-1267","to":"CVE-2007-4559","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"…n 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.","from":"CVE.org","in":"CVE-2007-4559"}]}]}}