#VU48600 Path traversal in py-pip - CVE-2019-20916

 

#VU48600 Path traversal in py-pip - CVE-2019-20916

Published: September 4, 2020 / Updated: July 20, 2022


Vulnerability identifier: #VU48600
Vulnerability risk: Medium
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2019-20916
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
py-pip
Software vendor:
www.pip-installer.org

Description

The vulnerability allows a remote attacker to perform directory traversal attacks.

The vulnerability exists due to input validation error when processing directory traversal sequences passed via URL to the install command within the _download_http_url() function in _internal/download.py. A remote attacker can send a specially crafted HTTP request with the Content-Disposition header that contains directory traversal characters in the filename and overwrite the /root/.ssh/authorized_keys file.


Remediation

Install update from vendor's website.

External links