synced 11 MIN AGO
01 Record

CVE-2007-4559

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)

CriticalPUBLISHEDCNA: mitre
CNA base score9.8 CVSS v3.xCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

02 Description

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)

03 Exploitation and scoring

Exploitation
Public exploit code exists. CISA's assessment records a public proof of concept. That is not a report of exploitation in the wild.
SSVC decision
  • ExploitationpocPublic proof-of-concept exploit code exists. Not a report of exploitation in the wild.
  • AutomatableyesAn attacker can reliably automate reconnaissance through exploitation, so this scales.
  • Technical ImpacttotalSuccessful exploitation gives total control of the vulnerable component.
CISA publishes the decision points, not a final SSVC decision. The decision also depends on mission and well-being impact, which is a property of your deployment rather than of the vulnerability.
EPSS probability
27.09% probability of exploitation activity in the next 30 days.
EPSS percentile
Equal to or higher than the score of 97.8% of scored records. A rank, not a probability.
NVD base score
9.8 (CVSS v3.x), scored by the NVD independently of the CNA.
NVD CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD analysis status
Modified. NVD last modified this record on 2026-06-16.
Red Hat severity
Moderate. Red Hat's rating for its own products, not a CVSS rating.

Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.

04 Metadata

Published
2007-08-28 00:00Z19 YR AGO
Last updated
2025-01-17 14:48Z1 YR AGO
Reserved
2007-08-27
Assigning CNA
mitre
Record state
PUBLISHED
Severity
Critical (CVSS 9.8)
CNA CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
  • CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')Base
Data version
5.1
Document digest
36b1e519c586dfdad28744838955a5767c9ad482054c30f796bfdac7e5f00090

05 Affected products

VendorProductVersionsPlatforms
pythonpythonNot specified—
redhatenterprise_linuxNot specified—
redhatrhel_eusNot specified—
redhatrhel_software_collectionsNot specified—

06 References

07 Fixed in

AlmaLinux 8

  • platform-python
    Fixed in 3.6.8-56.el8_9.alma.1
  • platform-python-debug
    Fixed in 3.6.8-56.el8_9.alma.1
  • platform-python-devel
    Fixed in 3.6.8-56.el8_9.alma.1
  • platform-python-pip
    Fixed in 9.0.3-23.el8
  • python3-idle
    Fixed in 3.6.8-56.el8_9.alma.1
  • python3-libs
    Fixed in 3.6.8-56.el8_9.alma.1
  • python3-pip
    Fixed in 9.0.3-23.el8
  • python3-pip-wheel
    Fixed in 9.0.3-23.el8
  • python3-test
    Fixed in 3.6.8-56.el8_9.alma.1
  • python3-tkinter
    Fixed in 3.6.8-56.el8_9.alma.1
  • python3.11
    Fixed in 3.11.5-1.el8_9
  • python3.11-debug
    Fixed in 3.11.5-1.el8_9
  • python3.11-devel
    Fixed in 3.11.5-1.el8_9
  • python3.11-idle
    Fixed in 3.11.5-1.el8_9
  • python3.11-libs
    Fixed in 3.11.5-1.el8_9
  • python3.11-pip
    Fixed in 22.3.1-4.el8
  • python3.11-pip-wheel
    Fixed in 22.3.1-4.el8
  • python3.11-rpm-macros
    Fixed in 3.11.5-1.el8_9
  • python3.11-test
    Fixed in 3.11.5-1.el8_9
  • python3.11-tkinter
    Fixed in 3.11.5-1.el8_9
  • python38
    Fixed in 3.8.17-2.module_el8.9.0+3633+e453b53a
  • python38-Cython
    Fixed

    A version is affected if any line below covers it.

    • Affected before 0.29.14-4.module_el8.6.0+2778+cd494b30
    • Affected before 0.29.14-4.module_el8.6.0+3163+f4472775
  • python38-PyMySQL
    Fixed in 0.10.1-1.module_el8.6.0+2778+cd494b30
  • python38-asn1crypto
    Fixed in 1.2.0-3.module_el8.6.0+2778+cd494b30
  • python38-atomicwrites
    Fixed in 1.3.0-8.module_el8.6.0+2778+cd494b30
  • python38-attrs
    Fixed in 19.3.0-3.module_el8.6.0+2778+cd494b30
  • python38-babel
    Fixed in 2.7.0-11.module_el8.6.0+2778+cd494b30
  • python38-cffi
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.13.2-3.module_el8.6.0+2778+cd494b30
    • Affected before 1.13.2-3.module_el8.6.0+3163+f4472775
  • python38-chardet
    Fixed in 3.0.4-19.module_el8.6.0+2778+cd494b30
  • python38-cryptography
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.8-3.module_el8.6.0+2778+cd494b30
    • Affected before 2.8-3.module_el8.6.0+3163+f4472775
  • python38-debug
    Fixed in 3.8.17-2.module_el8.9.0+3633+e453b53a
  • python38-devel
    Fixed in 3.8.17-2.module_el8.9.0+3633+e453b53a
  • python38-idle
    Fixed in 3.8.17-2.module_el8.9.0+3633+e453b53a
  • python38-idna
    Fixed in 2.8-6.module_el8.6.0+2778+cd494b30
  • python38-jinja2
    Fixed in 2.11.3-1.module_el8.7.0+3344+99a6a656
  • python38-libs
    Fixed in 3.8.17-2.module_el8.9.0+3633+e453b53a
  • python38-lxml
    Fixed

    A version is affected if any line below covers it.

    • Affected before 4.4.1-7.module_el8.6.0+2778+cd494b30
    • Affected before 4.4.1-7.module_el8.6.0+3163+f4472775
  • python38-markupsafe
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.1.1-6.module_el8.6.0+2778+cd494b30
    • Affected before 1.1.1-6.module_el8.6.0+3163+f4472775
  • python38-mod_wsgi
    Fixed in 4.6.8-5.module_el8.9.0+3633+e453b53a
  • python38-more-itertools
    Fixed in 7.2.0-5.module_el8.6.0+2778+cd494b30

80 further packages in AlmaLinux 8 not shown (first 40 listed).

Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

AlmaLinux 9

  • python-unversioned-command
    Fixed in 3.9.18-1.el9_3
  • python3
    Fixed in 3.9.18-1.el9_3
  • python3-debug
    Fixed in 3.9.18-1.el9_3
  • python3-devel
    Fixed in 3.9.18-1.el9_3
  • python3-idle
    Fixed in 3.9.18-1.el9_3
  • python3-libs
    Fixed in 3.9.18-1.el9_3
  • python3-pip
    Fixed in 21.2.3-7.el9
  • python3-pip-wheel
    Fixed in 21.2.3-7.el9
  • python3-test
    Fixed in 3.9.18-1.el9_3
  • python3-tkinter
    Fixed in 3.9.18-1.el9_3
  • python3.11
    Fixed in 3.11.5-1.el9_3
  • python3.11-debug
    Fixed in 3.11.5-1.el9_3
  • python3.11-devel
    Fixed in 3.11.5-1.el9_3
  • python3.11-idle
    Fixed in 3.11.5-1.el9_3
  • python3.11-libs
    Fixed in 3.11.5-1.el9_3
  • python3.11-pip
    Fixed in 22.3.1-4.el9
  • python3.11-pip-wheel
    Fixed in 22.3.1-4.el9
  • python3.11-test
    Fixed in 3.11.5-1.el9_3
  • python3.11-tkinter
    Fixed in 3.11.5-1.el9_3

Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

CloudLinux 8

  • platform-python
    Fixed in 3.6.8-56.el8_9.alma.1
  • platform-python-debug
    Fixed in 3.6.8-56.el8_9.alma.1
  • platform-python-devel
    Fixed in 3.6.8-56.el8_9.alma.1
  • platform-python-pip
    Fixed in 9.0.3-23.el8
  • python3-idle
    Fixed in 3.6.8-56.el8_9.alma.1
  • python3-libs
    Fixed in 3.6.8-56.el8_9.alma.1
  • python3-pip
    Fixed in 9.0.3-23.el8
  • python3-pip-wheel
    Fixed in 9.0.3-23.el8
  • python3-test
    Fixed in 3.6.8-56.el8_9.alma.1
  • python3-tkinter
    Fixed in 3.6.8-56.el8_9.alma.1
  • python3.11
    Fixed in 3.11.5-1.el8_9
  • python3.11-debug
    Fixed in 3.11.5-1.el8_9
  • python3.11-devel
    Fixed in 3.11.5-1.el8_9
  • python3.11-idle
    Fixed in 3.11.5-1.el8_9
  • python3.11-libs
    Fixed in 3.11.5-1.el8_9
  • python3.11-pip
    Fixed in 22.3.1-4.el8
  • python3.11-pip-wheel
    Fixed in 22.3.1-4.el8
  • python3.11-rpm-macros
    Fixed in 3.11.5-1.el8_9
  • python3.11-test
    Fixed in 3.11.5-1.el8_9
  • python3.11-tkinter
    Fixed in 3.11.5-1.el8_9
  • python38
    Fixed in 3.8.17-2.module_el8.9.0+3633+e453b53a
  • python38-Cython
    Fixed

    A version is affected if any line below covers it.

    • Affected before 0.29.14-4.module_el8.6.0+2778+cd494b30
    • Affected before 0.29.14-4.module_el8.6.0+3163+f4472775
  • python38-PyMySQL
    Fixed in 0.10.1-1.module_el8.6.0+2778+cd494b30
  • python38-asn1crypto
    Fixed in 1.2.0-3.module_el8.6.0+2778+cd494b30
  • python38-atomicwrites
    Fixed in 1.3.0-8.module_el8.6.0+2778+cd494b30
  • python38-attrs
    Fixed in 19.3.0-3.module_el8.6.0+2778+cd494b30
  • python38-babel
    Fixed in 2.7.0-11.module_el8.6.0+2778+cd494b30
  • python38-cffi
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.13.2-3.module_el8.6.0+2778+cd494b30
    • Affected before 1.13.2-3.module_el8.6.0+3163+f4472775
  • python38-chardet
    Fixed in 3.0.4-19.module_el8.6.0+2778+cd494b30
  • python38-cryptography
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.8-3.module_el8.6.0+2778+cd494b30
    • Affected before 2.8-3.module_el8.6.0+3163+f4472775
  • python38-debug
    Fixed in 3.8.17-2.module_el8.9.0+3633+e453b53a
  • python38-devel
    Fixed in 3.8.17-2.module_el8.9.0+3633+e453b53a
  • python38-idle
    Fixed in 3.8.17-2.module_el8.9.0+3633+e453b53a
  • python38-idna
    Fixed in 2.8-6.module_el8.6.0+2778+cd494b30
  • python38-jinja2
    Fixed in 2.11.3-1.module_el8.7.0+3344+99a6a656
  • python38-libs
    Fixed in 3.8.17-2.module_el8.9.0+3633+e453b53a
  • python38-lxml
    Fixed

    A version is affected if any line below covers it.

    • Affected before 4.4.1-7.module_el8.6.0+2778+cd494b30
    • Affected before 4.4.1-7.module_el8.6.0+3163+f4472775
  • python38-markupsafe
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.1.1-6.module_el8.6.0+2778+cd494b30
    • Affected before 1.1.1-6.module_el8.6.0+3163+f4472775
  • python38-mod_wsgi
    Fixed in 4.6.8-5.module_el8.9.0+3633+e453b53a
  • python38-more-itertools
    Fixed in 7.2.0-5.module_el8.6.0+2778+cd494b30

80 further packages in CloudLinux 8 not shown (first 40 listed).

Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.

Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

CloudLinux 9

  • python-unversioned-command
    Fixed in 3.9.18-1.el9_3
  • python3
    Fixed in 3.9.18-1.el9_3
  • python3-debug
    Fixed in 3.9.18-1.el9_3
  • python3-devel
    Fixed in 3.9.18-1.el9_3
  • python3-idle
    Fixed in 3.9.18-1.el9_3
  • python3-libs
    Fixed in 3.9.18-1.el9_3
  • python3-pip
    Fixed in 21.2.3-7.el9
  • python3-pip-wheel
    Fixed in 21.2.3-7.el9
  • python3-test
    Fixed in 3.9.18-1.el9_3
  • python3-tkinter
    Fixed in 3.9.18-1.el9_3
  • python3.11
    Fixed in 3.11.5-1.el9_3
  • python3.11-debug
    Fixed in 3.11.5-1.el9_3
  • python3.11-devel
    Fixed in 3.11.5-1.el9_3
  • python3.11-idle
    Fixed in 3.11.5-1.el9_3
  • python3.11-libs
    Fixed in 3.11.5-1.el9_3
  • python3.11-pip
    Fixed in 22.3.1-4.el9
  • python3.11-pip-wheel
    Fixed in 22.3.1-4.el9
  • python3.11-test
    Fixed in 3.11.5-1.el9_3
  • python3.11-tkinter
    Fixed in 3.11.5-1.el9_3

Derived from AlmaLinux 9. Partial coverage: only packages taken from AlmaLinux 9 are listed.

Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 22.04 LTS

  • python2.7
    No fix yet
  • python3.10
    Fixed in 3.10.12-1~22.04.2
  • python3.11
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 14.04 LTS

  • python2.7
    No fix yet
  • python3.4
    No fix yet
  • python3.5
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 16.04 LTS

  • python2.7
    No fix yet
  • python3.5
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 18.04 LTS

  • python2.7
    No fix yet
  • python3.6
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 20.04 LTS

  • python3.8
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.