Skip to content
Noroxi
NVD / CVE Program· CNA mitre

CVE-2007-4559: Directory traversal vulnerability in the (1) extract and (2) extractall functions in the tarfile module in Python allows user-assisted…

CriticalCVSS 9.8 · v3.1—Proof of concept Fix available

Noroxi assessment

Priority: Plan (action score 47/100)

  • Public proof-of-concept code exists (GitHub); there is no record of exploitation in the wild.
  • Probability of exploitation in the next 30 days: 27% (FIRST EPSS); higher than 98% of all records.
  • Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
  • According to CISA the attack is automatable: targets can be found by mass scanning.
  • Fixed version: CBL Mariner 1.0 ARM 2.7.18-5; CBL Mariner 1.0 x64 2.7.18-5; CBL Mariner 2.0 ARM 3.9.19-1.

Add it to your regular patch cycle. Upgrade to CBL Mariner 1.0 ARM 2.7.18-5; CBL Mariner 1.0 x64 2.7.18-5; CBL Mariner 2.0 ARM 3.9.19-1 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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
Aug 27, 2007
Updated
Jun 16, 2026
EPSS
27.0% · 98th percentile

Report tools

JSON

Action score

47

Plan

Add it to your regular patch cycle.

CVSS
39 / 40 · 9.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
8 / 30 · 27.0%

CISA SSVC decision

Exploitation
proof of concept
Automatable
yes
Technical impact
total

Vulnrichment: CISA's decision-tree inputs.

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • Proof of concept exists, no weaponized module
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2007-4559

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools
Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
pythonpython

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • python pythonbefore 3.6.16
  • python python3.7.0 and later · before 3.8.17
  • python python3.9.0 and later · before 3.9.17
  • python python3.10.0 and later · before 3.10.12
  • python python3.11.0 and later · before 3.11.4

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:8platform-pythonbefore 3.6.8-56.el8_9.alma.13.6.8-56.el8_9.alma.1
AlmaLinux:8platform-python-debugbefore 3.6.8-56.el8_9.alma.13.6.8-56.el8_9.alma.1
AlmaLinux:8platform-python-develbefore 3.6.8-56.el8_9.alma.13.6.8-56.el8_9.alma.1
AlmaLinux:8platform-python-pipbefore 9.0.3-23.el89.0.3-23.el8
AlmaLinux:8python3-idlebefore 3.6.8-56.el8_9.alma.13.6.8-56.el8_9.alma.1
AlmaLinux:8python3-libsbefore 3.6.8-56.el8_9.alma.13.6.8-56.el8_9.alma.1
AlmaLinux:8python3-pipbefore 9.0.3-23.el89.0.3-23.el8
AlmaLinux:8python3-pip-wheelbefore 9.0.3-23.el89.0.3-23.el8
AlmaLinux:8python3-testbefore 3.6.8-56.el8_9.alma.13.6.8-56.el8_9.alma.1
AlmaLinux:8python3-tkinterbefore 3.6.8-56.el8_9.alma.13.6.8-56.el8_9.alma.1
AlmaLinux:8python3.11before 3.11.5-1.el8_93.11.5-1.el8_9
AlmaLinux:8python3.11-debugbefore 3.11.5-1.el8_93.11.5-1.el8_9
AlmaLinux:8python3.11-develbefore 3.11.5-1.el8_93.11.5-1.el8_9
AlmaLinux:8python3.11-idlebefore 3.11.5-1.el8_93.11.5-1.el8_9
AlmaLinux:8python3.11-libsbefore 3.11.5-1.el8_93.11.5-1.el8_9
AlmaLinux:8python3.11-pipbefore 22.3.1-4.el822.3.1-4.el8
AlmaLinux:8python3.11-pip-wheelbefore 22.3.1-4.el822.3.1-4.el8
AlmaLinux:8python3.11-rpm-macrosbefore 3.11.5-1.el8_93.11.5-1.el8_9
AlmaLinux:8python3.11-testbefore 3.11.5-1.el8_93.11.5-1.el8_9
AlmaLinux:8python3.11-tkinterbefore 3.11.5-1.el8_93.11.5-1.el8_9
AlmaLinux:8python38before 3.8.17-2.module_el8.9.0+3633+e453b53a3.8.17-2.module_el8.9.0+3633+e453b53a
AlmaLinux:8python38-asn1cryptobefore 1.2.0-3.module_el8.6.0+2778+cd494b301.2.0-3.module_el8.6.0+2778+cd494b30
AlmaLinux:8python38-atomicwritesbefore 1.3.0-8.module_el8.6.0+2778+cd494b301.3.0-8.module_el8.6.0+2778+cd494b30
AlmaLinux:8python38-attrsbefore 19.3.0-3.module_el8.6.0+2778+cd494b3019.3.0-3.module_el8.6.0+2778+cd494b30

+96

Other highest-scoring records for the same primary product.

  • CVE-2016-5636Integer overflow in the get_data function in zipimport.c in CPython (aka Python) before 2.7.12, 3.x before 3.4.5, and 3.5.x before 3.5.2…
    47Plan
  • CVE-2021-3177Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c, which may lead to remote code execution in certain…
    46Plan
  • CVE-2014-4650The CGIHTTPServer module in Python 2.7.5 and 3.3.4 does not properly handle URLs in which URL encoding is used for path separators, which…
    46Plan

Published before and after this one in the same product

  • ← EarlierCVE-2006-4980Oct 10, 2006 · Buffer overflow in the repr function in Python 2.3 through 2.6 before 20060822 allows context-dependent attackers to cause a denial of…
    32Monitor
  • ← EarlierCVE-2007-2052Apr 16, 2007 · Off-by-one error in the PyLocale_strxfrm function in Modules/_localemodule.c for Python 2.4 and 2.5 causes an incorrect buffer size to be…
    24Monitor
  • Later →CVE-2007-4965Sep 18, 2007 · Multiple integer overflows in the imageop module in Python 2.5.1 and earlier allow context-dependent attackers to cause a denial of service…
    27Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
CBL Mariner 1.0 ARM2.7.18-5 · python2Microsoft (MSRC)
CBL Mariner 1.0 x642.7.18-5 · python2Microsoft (MSRC)
CBL Mariner 2.0 ARM3.9.19-1 · python3Microsoft (MSRC)
CBL Mariner 2.0 x643.9.19-1 · python3Microsoft (MSRC)
almalinux:python-unversioned-command3.9.18-1.el9_3 · AlmaLinux:9Package registry (OSV)
almalinux:python33.9.18-1.el9_3 · AlmaLinux:9Package registry (OSV)
almalinux:python3-debug3.9.18-1.el9_3 · AlmaLinux:9Package registry (OSV)
almalinux:python3.113.11.5-1.el9_3 · AlmaLinux:9Package registry (OSV)
almalinux:python3.11-debug3.11.5-1.el9_3 · AlmaLinux:9Package registry (OSV)
almalinux:python3.11-devel3.11.5-1.el9_3 · AlmaLinux:9Package registry (OSV)
almalinux:python3.11-idle3.11.5-1.el9_3 · AlmaLinux:9Package registry (OSV)
almalinux:python3.11-libs3.11.5-1.el9_3 · AlmaLinux:9Package registry (OSV)
almalinux:python3.11-pip22.3.1-4.el9 · AlmaLinux:9Package registry (OSV)
almalinux:python3.11-pip-wheel22.3.1-4.el9 · AlmaLinux:9Package registry (OSV)
almalinux:python3.11-test3.11.5-1.el9_3 · AlmaLinux:9Package registry (OSV)
almalinux:python3.11-tkinter3.11.5-1.el9_3 · AlmaLinux:9Package registry (OSV)
opensuse:python33.6.15-150300.10.48.1 · openSUSE:Leap Micro 5.3Package registry (OSV)
opensuse:python3-core3.6.15-150300.10.48.1 · openSUSE:Leap Micro 5.3Package registry (OSV)
opensuse:python3-documentation3.6.15-150300.10.48.1 · openSUSE:Leap 15.4Package registry (OSV)
opensuse:python3103.10.11-150400.4.25.1 · openSUSE:Leap 15.4Package registry (OSV)
opensuse:python310-core3.10.11-150400.4.25.1 · openSUSE:Leap 15.4Package registry (OSV)
opensuse:python310-documentation3.10.11-150400.4.25.1 · openSUSE:Leap 15.4Package registry (OSV)
opensuse:python3113.11.3-150400.9.12.1 · openSUSE:Leap 15.4Package registry (OSV)
opensuse:python311-core3.11.3-150400.9.12.1 · openSUSE:Leap 15.4Package registry (OSV)
opensuse:python311-documentation3.11.3-150400.9.12.1 · openSUSE:Leap 15.4Package registry (OSV)
opensuse:python393.9.16-150300.4.27.1 · openSUSE:Leap 15.4Package registry (OSV)
opensuse:python39-core3.9.16-150300.4.27.1 · openSUSE:Leap 15.4Package registry (OSV)
opensuse:python39-documentation3.9.16-150300.4.27.1 · openSUSE:Leap 15.4Package registry (OSV)
red hat:python-unversioned-command0:3.9.18-1.el9_3 · Red Hat:enterprise_linux:9::appstreamPackage registry (OSV)
red hat:python3.110:3.11.5-1.el9_3 · Red Hat:enterprise_linux:9::appstreamPackage registry (OSV)

+36

Exploit status

Proof of concept available

A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.

Evidence

  • Proof-of-concept repository on GitHub ×7

Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.

Public exploit evidence
SourceKindDate
Proof-of-concept repository on GitHub7 repositories2022-09-20 → 2026-04-18

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

  1. Published
  2. First PoC+5502 d
  3. TodayNov 16, 2026+7020 d

Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

nvd-secondary

Root cause

A user-supplied file name is joined with the allowed directory, but the result is never checked to confirm it is still inside that directory.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

ts
const file = path.join(ROOT, req.query.name);res.sendFile(file);

Fixed

ts
const file = path.resolve(ROOT, req.query.name);if (!file.startsWith(ROOT + path.sep)) {  return res.sendStatus(400);}res.sendFile(file);

References

All records