PT-2020-6270 · Pypi+8 · Pip+8
Published
2019-04-16
·
Updated
2024-06-15
·
CVE-2019-20916
CVSS v4.0
8.7
High
| Vector | AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
pip versions prior to 19.2
Description
The issue allows Directory Traversal when a URL is given in an install command, because a Content-Disposition header can have ../ in a filename. This can be demonstrated by overwriting the /root/.ssh/authorized keys file. The problem occurs in the
download http url function in internal/download.py.Recommendations
For versions prior to 19.2, update to version 19.2 or later to resolve the issue. As a temporary workaround, consider restricting the use of URLs in install commands to minimize the risk of exploitation. Avoid using URLs that contain ../ in filenames until the issue is resolved.
Exploit
Fix
Path traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Almalinux
Astra Linux
Centos
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu
Pip