Skip to content
Noroxi
CVE-2007-4559· NVD / CVE Program· CNA mitre

Directory traversal vulnerability in the (1) extract and (2) extractall functions in the tarfile module in Python allows user-assisted remot

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.

CriticalCVSS 9.8 · v3.1—Proof of concept Fix available
Published
Aug 27, 2007
Updated
Jun 16, 2026
EPSS
27.1% · 98th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

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.1%

CISA SSVC decision

Exploitation
proof of concept
Automatable
yes
Technical impact
total

Vulnrichment: CISA's decision-tree inputs.

Affected systems

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 all
    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 Pyth
    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 al
    46Plan
  • CVE-2018-1000802Python Software Foundation Python (CPython) version 2.7 contains a CWE-77: Improper Neutralization of Special Elements used in a Command ('C
    45Plan
  • CVE-2020-27619In Python 3 through 3.9.0, the Lib/test/multibytecodec_support.py CJK codec tests call eval() on content retrieved via HTTP.
    42Plan
  • CVE-2019-9636Python 2.7.x through 2.7.16 and 3.x through 3.7.2 is affected by: Improper Handling of Unicode Encoding (with an incorrect netloc) during NF
    42Plan

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
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)
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)
red hat:python3.11-debug0:3.11.5-1.el9_3 · Red Hat:enterprise_linux:9::crbPackage registry (OSV)
red hat:python3.11-debuginfo0:3.11.5-1.el9_3 · Red Hat:enterprise_linux:9::appstreamPackage registry (OSV)
red hat:python3.11-debugsource0:3.11.5-1.el9_3 · Red Hat:enterprise_linux:9::appstreamPackage registry (OSV)
red hat:python3.11-devel0:3.11.5-1.el9_3 · Red Hat:enterprise_linux:9::appstreamPackage registry (OSV)
red hat:python3.11-idle0:3.11.5-1.el9_3 · Red Hat:enterprise_linux:9::crbPackage registry (OSV)
red hat:python3.11-libs0:3.11.5-1.el9_3 · Red Hat:enterprise_linux:9::appstreamPackage registry (OSV)
red hat:python3.11-pip0:22.3.1-4.el9 · Red Hat:enterprise_linux:9::appstreamPackage registry (OSV)
red hat:python3.11-pip-wheel0:22.3.1-4.el9 · Red Hat:enterprise_linux:9::appstreamPackage registry (OSV)
red hat:python3.11-test0:3.11.5-1.el9_3 · Red Hat:enterprise_linux:9::crbPackage registry (OSV)
red hat:python3.11-tkinter0:3.11.5-1.el9_3 · Red Hat:enterprise_linux:9::appstreamPackage registry (OSV)

+22

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 GitHubstars:822022-09-20
Proof-of-concept repository on GitHubstars:02022-10-21
Proof-of-concept repository on GitHubstars:02023-09-10
Proof-of-concept repository on GitHubstars:02024-05-03
Proof-of-concept repository on GitHubstars:02024-07-07
Proof-of-concept repository on GitHubstars:12025-07-01
Proof-of-concept repository on GitHubstars:02026-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. TodaySep 30, 2026+6974 d
EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

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);

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records