CVE-2007-4559

Exp

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.

Published: 2007-08-28 Last update: 2026-04-23 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2007-4559 is rated High Exploit Risk (88.2/100): CVSS Critical severity, with high exploitation likelihood (EPSS 89.36%, 100th percentile). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2007-4559

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2007-4559

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-05-22 90.19% 89.36% -0.83%
2 2026-05-11 89.71% 90.19% +0.48%
3 2026-05-09 89.71%

Full EPSS history (61 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2007-4559

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
9.8 3.1 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
3.9 5.9 134c704f-9b21-4f2e-91b3-4a467353bcc0
6.8 2.0 MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:P Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:M)
Exploitation needs some favorable conditions, but not exceptional ones.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:P)
Partial integrity impact.
Availability impact (A:P)
Partial availability impact.
8.6 6.4 [email protected]

Weakness enumeration for CVE-2007-4559

OS Trackers for CVE-2007-4559

vendor priority summary link
alpine CVE-2007-4559: no source package rows; 0 state rows across 0 repos (none); fixed 0, open 0. https://security.alpinelinux.org/vuln/CVE-2007-4559
gentoo high CVE-2007-4559: 1 GLSA(s) (202309-06), 1 atom(s) (net-fs/samba); latest impact high. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2007-4559
redhat medium https://access.redhat.com/security/cve/CVE-2007-4559
suse medium CVE-2007-4559 severity moderate: SUSE including 701 source package names (0.0.17-1.1:libpython3_6m1_0-3.6.15-150300.10.48.1, 0.0.17-1.1:python3-3.6.15-150300.10.48.1, …), 2374 product×package rows across 398 product lines (Container bci/bci-base-fips, Container bci/bci-sle15-kernel-module-devel, … (398 product lines)): Fixed 2130, Known Affected 160, Will Not Fix 84. https://www.suse.com/security/cve/CVE-2007-4559/
ubuntu medium CVE-2007-4559 medium priority: Ubuntu including 16 source packages (python2.3, python2.4, …), 116 status rows across 13 suites (bionic, dapper, focal, hardy, intrepid, jammy, jaunty, karmic, lunar, mantic, trusty, upstream, xenial): DNE 68, ignored 34, released 7, needs-triage 5, not-affected 2. https://ubuntu.com/security/CVE-2007-4559

Vendor comments (NVD) for CVE-2007-4559

  • Red Hat (2007-10-15T00:00:00)

    Red Hat is aware of this issue and is tracking it via the following bug: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=263261 The Red Hat Security Response Team has rated this issue as having low security impact, a future update may address this flaw. More information regarding issue severity can be found here: http://www.redhat.com/security/updates/classification/

Affected software / configurations for CVE-2007-4559

Vendor Product Version Raw CPE
python python < 3.6.16 cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
python python >= 3.7.0, < 3.8.17 cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
python python >= 3.9.0, < 3.9.17 cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
python python >= 3.10.0, < 3.10.12 cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
python python >= 3.11.0, < 3.11.4 cpe:2.3:a:python:python:*:*:*:*:*:*:*:*

References for CVE-2007-4559

URL Tags
http://mail.python.org/pipermail/python-dev/2007-August/074290.html Mailing List Vendor Advisory
http://mail.python.org/pipermail/python-dev/2007-August/074292.html Exploit Mailing List
http://secunia.com/advisories/26623 Broken Link
http://www.vupen.com/english/advisories/2007/3022 Broken Link
https://bugzilla.redhat.com/show_bug.cgi?id=263261 Issue Tracking
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CVBB7NU3YIRRDOKLYVN647WPRR3IAKR6/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FI55PGL47ES3OU2FQPGEHOI2EK3S2OBH/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KA4Z44ZAI4SY7THCFBUDNT5EEFO4XQ3A/
https://security.gentoo.org/glsa/202309-06
https://lists.fedoraproject.org/archives/list/[email protected]/message/CVBB7NU3YIRRDOKLYVN647WPRR3IAKR6/
https://lists.fedoraproject.org/archives/list/[email protected]/message/FI55PGL47ES3OU2FQPGEHOI2EK3S2OBH/
https://lists.fedoraproject.org/archives/list/[email protected]/message/KA4Z44ZAI4SY7THCFBUDNT5EEFO4XQ3A/
cvelogic Threat Intelligence