First published: Fri Aug 24 2007(Updated: )
A flaw was found in the Python tarfile module. Extracting a crafted TAR archive with the tarfile.extract or tarfile.extractall functions could lead to a directory traversal vulnerability, resulting in overwrite of arbitrary files.
Credit: cve@mitre.org cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
Python Software Foundation Python | ||
Python Python | <3.6.16 | |
Python Python | >=3.7.0<3.8.17 | |
Python Python | >=3.9.0<3.9.17 | |
Python Python | >=3.10.0<3.10.12 | |
Python Python | >=3.11.0<3.11.4 | |
redhat/python3.11-pip | <0:22.3.1-4.el8 | 0:22.3.1-4.el8 |
redhat/python3.11 | <0:3.11.5-1.el8_9 | 0:3.11.5-1.el8_9 |
redhat/python3 | <0:3.6.8-56.el8_9 | 0:3.6.8-56.el8_9 |
redhat/python-pip | <0:9.0.3-23.el8 | 0:9.0.3-23.el8 |
redhat/python-pip | <0:9.0.3-22.1.el8_6 | 0:9.0.3-22.1.el8_6 |
redhat/python3 | <0:3.6.8-47.el8_6.4 | 0:3.6.8-47.el8_6.4 |
redhat/python-pip | <0:9.0.3-22.1.el8_8 | 0:9.0.3-22.1.el8_8 |
redhat/python3.11-pip | <0:22.3.1-4.el9 | 0:22.3.1-4.el9 |
redhat/python3.11 | <0:3.11.5-1.el9_3 | 0:3.11.5-1.el9_3 |
redhat/python3.9 | <0:3.9.18-1.el9_3 | 0:3.9.18-1.el9_3 |
redhat/python-pip | <0:21.2.3-7.el9 | 0:21.2.3-7.el9 |
redhat/rh-python38-python | <0:3.8.18-2.el7 | 0:3.8.18-2.el7 |
redhat/rh-python38-python-pip | <0:19.3.1-4.el7 | 0:19.3.1-4.el7 |
IBM QRadar SIEM | <=7.5 - 7.5.0 UP8 IF01 |
Do not extract archives from untrusted sources with the Python tarfile module. Users of the module should add sanity checks when calling the tarfile.extract or tarfile.extractall functions.
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
(Appears in the following advisories)
CVE-2007-4559 is a vulnerability that allows user-assisted remote attackers to overwrite arbitrary files via a directory traversal attack in the Python tarfile module.
Python Software Foundation Python and Python Python versions up to 3.11.4 are affected by CVE-2007-4559.
CVE-2007-4559 has a severity score of 6.8, which is considered medium.
To fix CVE-2007-4559, update to a version of Python Software Foundation Python or Python Python that is not affected by the vulnerability.
You can find more information about CVE-2007-4559 at the following references: [1] [2] [3]