Vulnerabilities · 2007 · Python
CVE-2007-4559
Python vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Python. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Python runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- mail.python.org/pipermail/python-dev/2007-August/074290.html · Vendor Advisory
- mail.python.org/pipermail/python-dev/2007-August/074292.html · Exploit
- secunia.com/advisories/26623
- www.vupen.com/english/advisories/2007/3022
- bugzilla.redhat.com/show_bug.cgi?id=263261
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/F
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K
- nvd.nist.gov/vuln/detail/CVE-2007-4559
- cve.org/CVERecord?id=CVE-2007-4559
More vulnerabilities in Python products
CVE-2026-21441CVE-2025-66471CVE-2025-66418CVE-2025-50182CVE-2025-50181CVE-2025-48379CVE-2025-47273CVE-2025-13837All 231
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.