CVE-2007-4559
Reported by mitre · Published August 28, 2007
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| python3.11-pip | Amazon Linux | 22.3.1-2.amzn2023.0.6 |
| python2-pip | Amazon Linux | 20.2.2-1.amzn2.0.10 |
| python-test | Amazon Linux | 2.7.18-1.amzn2.0.12 |
| python3-debug | Amazon Linux | 3.9.20-1.amzn2023.0.2 |
| python3-pip-wheel | Amazon Linux | 21.3.1-2.amzn2023.0.11 |
| python3-libs | Amazon Linux | 3.9.20-1.amzn2023.0.2, 3.7.16-1.amzn2.0.14 |
| python3 | Amazon Linux | 3.9.20-1.amzn2023.0.2 |
| python3-test | Amazon Linux | 3.9.20-1.amzn2023.0.2, 3.7.16-1.amzn2.0.14 |
| python3-pip | Amazon Linux | 20.2.2-1.amzn2.0.10 |
| python3-tools | Amazon Linux | 3.7.16-1.amzn2.0.14 |
| python3.11-test | Amazon Linux | 3.11.6-1.amzn2023.0.6 |
| python | Bitnami | 3.11.4, 3.10.12, 3.9.17, 3.8.17, 3.6.16 |
12 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2023 | python3.11-pip | 0 |
| amazon:2 | python2-pip | 0 |
| amazon:2 | python-test | 0 |
| amazon:2023 | python3-debug | 0 |
| amazon:2023 | python3-pip-wheel | 0 |
| amazon:2023 | python3-libs | 0 |
| amazon:2023 | python3 | 0 |
| amazon:2 | python3-test | 0 |
| wolfi | python-3.10 | * |
| chainguard | python-3.11 | * |
| amazon:2 | python3-pip | 0 |
| wolfi | python-3.11 | * |
| amazon:2 | python3-tools | 0 |
| chainguard | python-3.12 | * |
| amazon:2023 | python3.11-test | 0 |
| amazon:2 | python3-tkinter | 0 |
| amazon:2 | python-pip-wheel | 0 |
| amazon:2023 | python3-test | 0 |
| amazon:2023 | python3.11-tkinter | 0 |
…and 28 more
Timeline
- Aug 28, 2007 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Feb 5, 2026 CVE Updated
- Jun 1, 2026 Security Advisory (20 in total, the first dated here)
- Nov 10, 2026 Coalition ESS Score
- Nov 21, 2026 Distribution Patch (16 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2007-4559
vulnetix vdb fixes CVE-2007-4559
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2007-4559/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- 26623 third-party-advisory
- ADV-2007-3022 vdb-entry
- [python-dev] 20070824 tarfile and directory traversal vulnerability mailing-list
- [python-dev] 20070825 tarfile and directory traversal vulnerability mailing-list
- GLSA-202309-06 vendor-advisory
- FEDORA-2024-d1f1084584 vendor-advisory
- FEDORA-2024-ebb3c95344 vendor-advisory
- FEDORA-2024-46374d2703 vendor-advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CVBB7NU3YIRRDOKLYVN647WPRR3IAKR6/ url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FI55PGL47ES3OU2FQPGEHOI2EK3S2OBH/ url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KA4Z44ZAI4SY7THCFBUDNT5EEFO4XQ3A/ url