CVE-2019-20916Path Traversal in PIP

CWE-22Path Traversal16 documents10 sources
Severity
7.5HIGHNVD
EPSS
0.6%
top 29.86%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedSep 4
Latest updateApr 15

Description

The pip package before 19.2 for Python allows Directory Traversal when a URL is given in an install command, because a Content-Disposition header can have ../ in a filename, as demonstrated by overwriting the /root/.ssh/authorized_keys file. This occurs in _download_http_url in _internal/download.py.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NExploitability: 3.9 | Impact: 3.6

Affected Packages5 packages

Also affects: Debian Linux 9.0

Patches

🔴Vulnerability Details

5
OSV
Path Traversal in pip2021-06-09
GHSA
Path Traversal in pip2021-06-09
OSV
python-pip vulnerability2020-10-22
CVEList
CVE-2019-20916: The pip package before 192020-09-04
OSV
CVE-2019-20916: The pip package before 192020-09-04

📋Vendor Advisories

6
Oracle
Oracle Oracle Fusion Middleware Risk Matrix: Third Party (Jython) — CVE-2019-209162023-04-15
Oracle
Oracle Oracle Communications Risk Matrix: CNE (Package Installer for Python) — CVE-2019-209162022-07-15
Ubuntu
pip vulnerability2020-10-22
Microsoft
The pip package before 19.2 for Python allows Directory Traversal when a URL is given in an install command because a Content-Disposition header can have ../ in a filename as demonstrated by overwriti2020-09-08
Red Hat
python-pip: directory traversal in _download_http_url() function in src/pip/_internal/download.py2019-04-16

💬Community

4
Bugzilla
CVE-2019-20916 python-pip: directory traversal in _download_http_url() function in src/pip/_internal/download.py2020-08-11
Bugzilla
CVE-2019-20916 python-virtualenv: python-pip: directory traversal in _download_http_url() function in src/pip/_internal/download.py [epel-6]2020-08-11
Bugzilla
CVE-2019-20916 python-pip: directory traversal in _download_http_url() function in src/pip/_internal/download.py [epel-6]2020-08-11
Bugzilla
CVE-2019-20916 python-pip-epel: python-pip: directory traversal in _download_http_url() function in src/pip/_internal/download.py [epel-7]2020-08-11
CVE-2019-20916 — Path Traversal in Pypa PIP | cvebase