CVE Catalog

CVE-2019-20916

High
Published: Translated: NVD NIST

Summary

The pip package before version 19.2 for Python is vulnerable to directory traversal when a URL is provided in an install command. An attacker can exploit a Content-Disposition header containing '../' in the filename to overwrite files, such as /root/.ssh/authorized_keys.

Risk Assessment

The risk involves the potential remote overwriting of critical system files like SSH keys, which could lead to unauthorized server access and privilege escalation.

Recommendation

Immediately upgrade pip to version 19.2 or later. If an upgrade is not possible, avoid installing packages from untrusted URLs.

Other vulnerabilities in pip

See all
Original NVD description (English source)

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

Vulnerability data from NVD (NIST) · CISA KEV · EPSS