---
title: "CVE-2007-4559"
canonical_url: "https://pkgseek.com/security/CVE-2007-4559"
locale: "zh-CN"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# 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) sequence in filenames in a TAR archive, a related issue to CVE-2001-1267.

CVE-2007-4559 严重级别为 MEDIUM，共索引 172 条受影响软件包构建记录，涉及 4 个发行版。

- **级别 / 评分**: MEDIUM
- **受影响构建数**: 172
- **涉及发行版**: 4
- **已标明修复版本发行版**: Alibaba Cloud Linux, Oracle Linux, Red Hat Enterprise Linux, Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Alibaba Cloud Linux | 3 | platform-python | 3.6.8-51.0.1.al8.1 | 3.6.8-56.0.1.2.al8.1 |
| Alibaba Cloud Linux | 3 | platform-python-debug | 3.6.8-51.0.1.al8.1 | 3.6.8-56.0.1.2.al8.1 |
| Alibaba Cloud Linux | 3 | platform-python-devel | 3.6.8-51.0.1.al8.1 | 3.6.8-56.0.1.2.al8.1 |
| Alibaba Cloud Linux | 3 | platform-python-pip | 9.0.3-22.0.1.al8 | 9.0.3-23.0.1.al8 |
| Alibaba Cloud Linux | 3 | python3.11-pip | 22.3.1-2.al8 | 22.3.1-5.al8 |
| Alibaba Cloud Linux | 3 | python3.11-pip-wheel | 22.3.1-2.al8 | 22.3.1-5.al8 |
| Alibaba Cloud Linux | 3 | python3-devel | 3.6.8-51.0.1.al8.1 | 3.6.8-56.0.1.2.al8.1 |
| Alibaba Cloud Linux | 3 | python3-idle | 3.6.8-51.0.1.al8.1 | 3.6.8-56.0.1.2.al8.1 |
| Alibaba Cloud Linux | 3 | python3-libs | 3.6.8-51.0.1.al8.1 | 3.6.8-56.0.1.2.al8.1 |
| Alibaba Cloud Linux | 3 | python3-pip | 9.0.3-22.0.1.al8 | 9.0.3-23.0.1.al8 |
| Alibaba Cloud Linux | 3 | python3-pip-wheel | 9.0.3-22.0.1.al8 | 9.0.3-23.0.1.al8 |
| Alibaba Cloud Linux | 3 | python3-test | 3.6.8-51.0.1.al8.1 | 3.6.8-56.0.1.2.al8.1 |
| Alibaba Cloud Linux | 3 | python3-tkinter | 3.6.8-51.0.1.al8.1 | 3.6.8-56.0.1.2.al8.1 |
| Oracle Linux | 8 | platform-python | 3.6.8-51.0.1.el8_8.2 | 3.6.8-56.0.1.el8_9 |
| Oracle Linux | 8 | platform-python-debug | 3.6.8-51.0.1.el8_8.2 | 3.6.8-56.0.1.el8_9 |
| Oracle Linux | 8 | platform-python-devel | 3.6.8-51.0.1.el8_8.2 | 3.6.8-56.0.1.el8_9 |
| Oracle Linux | 8 | platform-python-pip | 9.0.3-22.el8 | 9.0.3-23.el8 |
| Oracle Linux | 8 | python3.11 | 3.11.2-2.el8_8.2 | 3.11.5-1.el8_9 |
| Oracle Linux | 8 | python3.11-devel | 3.11.2-2.el8_8.2 | 3.11.5-1.el8_9 |
| Oracle Linux | 8 | python3.11-libs | 3.11.2-2.el8_8.2 | 3.11.5-1.el8_9 |
| Oracle Linux | 8 | python3.11-pip | 22.3.1-2.el8 | 22.3.1-4.el8 |
| Oracle Linux | 8 | python3.11-pip-wheel | 22.3.1-2.el8 | 22.3.1-4.el8 |
| Oracle Linux | 8 | python3.11-rpm-macros | 3.11.2-2.el8_8.2 | 3.11.5-1.el8_9 |
| Oracle Linux | 8 | python3.11-tkinter | 3.11.2-2.el8_8.2 | 3.11.5-1.el8_9 |
| Oracle Linux | 8 | python38 | 3.8.16-1.module+el8.8.0+21120+5d2e4734.1 | 3.8.17-2.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-asn1crypto | 1.2.0-3.module+el8.4.0+20068+32a535e2 | 1.2.0-3.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-babel | 2.7.0-11.module+el8.5.0+20371+4f24d723 | 2.7.0-11.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-cffi | 1.13.2-3.module+el8.4.0+20068+32a535e2 | 1.13.2-3.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-chardet | 3.0.4-19.module+el8.4.0+20068+32a535e2 | 3.0.4-19.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-cryptography | 2.8-3.module+el8.4.0+20068+32a535e2 | 2.8-3.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-Cython | 0.29.14-4.module+el8.4.0+20068+32a535e2 | 0.29.14-4.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-debug | 3.8.16-1.module+el8.8.0+21120+5d2e4734.1 | 3.8.17-2.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-devel | 3.8.16-1.module+el8.8.0+21120+5d2e4734.1 | 3.8.17-2.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-idle | 3.8.16-1.module+el8.8.0+21120+5d2e4734.1 | 3.8.17-2.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-idna | 2.8-6.module+el8.4.0+20068+32a535e2 | 2.8-6.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-jinja2 | 2.11.3-1.module+el8.7.0+20792+22659047 | 2.11.3-1.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-libs | 3.8.16-1.module+el8.8.0+21120+5d2e4734.1 | 3.8.17-2.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-lxml | 4.4.1-7.module+el8.6.0+20556+9910889d | 4.4.1-7.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-markupsafe | 1.1.1-6.module+el8.4.0+20068+32a535e2 | 1.1.1-6.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-mod_wsgi | 4.6.8-4.module+el8.7.0+20869+e1465161 | 4.6.8-5.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-numpy | 1.17.3-6.module+el8.5.0+20371+4f24d723 | 1.17.3-7.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-numpy-doc | 1.17.3-6.module+el8.5.0+20371+4f24d723 | 1.17.3-7.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-numpy-f2py | 1.17.3-6.module+el8.5.0+20371+4f24d723 | 1.17.3-7.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-pip | 19.3.1-6.module+el8.7.0+20792+22659047 | 19.3.1-7.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-pip-wheel | 19.3.1-6.module+el8.7.0+20792+22659047 | 19.3.1-7.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-ply | 3.11-10.module+el8.4.0+20068+32a535e2 | 3.11-10.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-psutil | 5.6.4-4.module+el8.5.0+20371+4f24d723 | 5.6.4-4.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-psycopg2 | 2.8.4-4.module+el8.4.0+20068+32a535e2 | 2.8.4-4.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-psycopg2-doc | 2.8.4-4.module+el8.4.0+20068+32a535e2 | 2.8.4-4.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-psycopg2-tests | 2.8.4-4.module+el8.4.0+20068+32a535e2 | 2.8.4-4.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-pycparser | 2.19-3.module+el8.4.0+20068+32a535e2 | 2.19-3.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-PyMySQL | 0.10.1-1.module+el8.4.0+20068+32a535e2 | 0.10.1-1.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-pysocks | 1.7.1-4.module+el8.4.0+20068+32a535e2 | 1.7.1-4.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-pytz | 2019.3-3.module+el8.4.0+20068+32a535e2 | 2019.3-4.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-pyyaml | 5.4.1-1.module+el8.5.0+20371+4f24d723 | 5.4.1-1.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-requests | 2.22.0-9.module+el8.4.0+20068+32a535e2 | 2.22.0-10.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-rpm-macros | 3.8.16-1.module+el8.8.0+21120+5d2e4734.1 | 3.8.17-2.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-scipy | 1.3.1-4.module+el8.4.0+20068+32a535e2 | 1.3.1-5.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-setuptools | 41.6.0-5.module+el8.5.0+20371+4f24d723 | 41.6.0-5.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-setuptools-wheel | 41.6.0-5.module+el8.5.0+20371+4f24d723 | 41.6.0-5.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-six | 1.12.0-10.module+el8.4.0+20068+32a535e2 | 1.12.0-10.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-test | 3.8.16-1.module+el8.8.0+21120+5d2e4734.1 | 3.8.17-2.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-tkinter | 3.8.16-1.module+el8.8.0+21120+5d2e4734.1 | 3.8.17-2.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-urllib3 | 1.25.7-5.module+el8.5.0+20371+4f24d723 | 1.25.7-5.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-wheel | 0.33.6-6.module+el8.5.0+20371+4f24d723 | 0.33.6-6.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python38-wheel-wheel | 0.33.6-6.module+el8.5.0+20371+4f24d723 | 0.33.6-6.module+el8.9.0+90017+9913aa0c |
| Oracle Linux | 8 | python39 | 3.9.16-1.module+el8.8.0+90007+d415a2d2.2 | 3.9.18-1.module+el8.9.0+90071+8dc52a4f |
| Oracle Linux | 8 | python39-cffi | 1.14.3-2.module+el8.4.0+20109+b7b1db01 | 1.14.3-2.module+el8.9.0+90016+9c2d6573 |
| Oracle Linux | 8 | python39-chardet | 3.0.4-19.module+el8.4.0+20109+b7b1db01 | 3.0.4-19.module+el8.9.0+90016+9c2d6573 |
| Oracle Linux | 8 | python39-cryptography | 3.3.1-2.module+el8.4.0+20109+b7b1db01 | 3.3.1-2.module+el8.9.0+90016+9c2d6573 |
| Oracle Linux | 8 | python39-devel | 3.9.16-1.module+el8.8.0+90007+d415a2d2.2 | 3.9.18-1.module+el8.9.0+90071+8dc52a4f |
| Oracle Linux | 8 | python39-idle | 3.9.16-1.module+el8.8.0+90007+d415a2d2.2 | 3.9.18-1.module+el8.9.0+90071+8dc52a4f |
| Oracle Linux | 8 | python39-idna | 2.10-3.module+el8.4.0+20109+b7b1db01 | 2.10-3.module+el8.9.0+90016+9c2d6573 |
| Oracle Linux | 8 | python39-libs | 3.9.16-1.module+el8.8.0+90007+d415a2d2.2 | 3.9.18-1.module+el8.9.0+90071+8dc52a4f |
| Oracle Linux | 8 | python39-lxml | 4.6.5-1.module+el8.6.0+20625+ee813db2 | 4.6.5-1.module+el8.9.0+90016+9c2d6573 |
| Oracle Linux | 8 | python39-mod_wsgi | 4.7.1-5.module+el8.7.0+20870+babacad2 | 4.7.1-7.module+el8.9.0+90016+9c2d6573 |
| Oracle Linux | 8 | python39-numpy | 1.19.4-3.module+el8.5.0+20364+c7fe1181 | 1.19.4-3.module+el8.9.0+90016+9c2d6573 |
| Oracle Linux | 8 | python39-numpy-doc | 1.19.4-3.module+el8.5.0+20364+c7fe1181 | 1.19.4-3.module+el8.9.0+90016+9c2d6573 |
| Oracle Linux | 8 | python39-numpy-f2py | 1.19.4-3.module+el8.5.0+20364+c7fe1181 | 1.19.4-3.module+el8.9.0+90016+9c2d6573 |
| Oracle Linux | 8 | python39-pip | 20.2.4-7.module+el8.6.0+20625+ee813db2 | 20.2.4-8.module+el8.9.0+90016+9c2d6573 |
| Oracle Linux | 8 | python39-pip-wheel | 20.2.4-7.module+el8.6.0+20625+ee813db2 | 20.2.4-8.module+el8.9.0+90016+9c2d6573 |
| Oracle Linux | 8 | python39-ply | 3.11-10.module+el8.4.0+20109+b7b1db01 | 3.11-10.module+el8.9.0+90016+9c2d6573 |
| Oracle Linux | 8 | python39-psutil | 5.8.0-4.module+el8.4.0+20109+b7b1db01 | 5.8.0-4.module+el8.9.0+90016+9c2d6573 |
| Oracle Linux | 8 | python39-psycopg2 | 2.8.6-2.module+el8.4.0+20109+b7b1db01 | 2.8.6-2.module+el8.9.0+90016+9c2d6573 |
| Oracle Linux | 8 | python39-psycopg2-doc | 2.8.6-2.module+el8.4.0+20109+b7b1db01 | 2.8.6-2.module+el8.9.0+90016+9c2d6573 |
| Oracle Linux | 8 | python39-psycopg2-tests | 2.8.6-2.module+el8.4.0+20109+b7b1db01 | 2.8.6-2.module+el8.9.0+90016+9c2d6573 |
| Oracle Linux | 8 | python39-pycparser | 2.20-3.module+el8.4.0+20109+b7b1db01 | 2.20-3.module+el8.9.0+90016+9c2d6573 |
| Oracle Linux | 8 | python39-PyMySQL | 0.10.1-2.module+el8.4.0+20109+b7b1db01 | 0.10.1-2.module+el8.9.0+90016+9c2d6573 |
| Oracle Linux | 8 | python39-pysocks | 1.7.1-4.module+el8.4.0+20109+b7b1db01 | 1.7.1-4.module+el8.9.0+90016+9c2d6573 |
| Oracle Linux | 8 | python39-pyyaml | 5.4.1-1.module+el8.5.0+20364+c7fe1181 | 5.4.1-1.module+el8.9.0+90016+9c2d6573 |
| Oracle Linux | 8 | python39-requests | 2.25.0-2.module+el8.4.0+20109+b7b1db01 | 2.25.0-3.module+el8.9.0+90016+9c2d6573 |
| Oracle Linux | 8 | python39-rpm-macros | 3.9.16-1.module+el8.8.0+90007+d415a2d2.2 | 3.9.18-1.module+el8.9.0+90071+8dc52a4f |
| Oracle Linux | 8 | python39-scipy | 1.5.4-3.module+el8.4.0+20109+b7b1db01 | 1.5.4-5.module+el8.9.0+90016+9c2d6573 |
| Oracle Linux | 8 | python39-setuptools | 50.3.2-4.module+el8.5.0+20364+c7fe1181 | 50.3.2-4.module+el8.9.0+90016+9c2d6573 |
| Oracle Linux | 8 | python39-setuptools-wheel | 50.3.2-4.module+el8.5.0+20364+c7fe1181 | 50.3.2-4.module+el8.9.0+90016+9c2d6573 |
| Oracle Linux | 8 | python39-six | 1.15.0-3.module+el8.4.0+20109+b7b1db01 | 1.15.0-3.module+el8.9.0+90016+9c2d6573 |
| Oracle Linux | 8 | python39-test | 3.9.16-1.module+el8.8.0+90007+d415a2d2.2 | 3.9.18-1.module+el8.9.0+90071+8dc52a4f |
| Oracle Linux | 8 | python39-tkinter | 3.9.16-1.module+el8.8.0+90007+d415a2d2.2 | 3.9.18-1.module+el8.9.0+90071+8dc52a4f |
| Oracle Linux | 8 | python39-toml | 0.10.1-5.module+el8.4.0+20109+b7b1db01 | 0.10.1-5.module+el8.9.0+90016+9c2d6573 |
| Oracle Linux | 8 | python39-urllib3 | 1.25.10-4.module+el8.5.0+20364+c7fe1181 | 1.25.10-4.module+el8.9.0+90016+9c2d6573 |

_Showing 100 of 172 total affected builds._
