GitHub Advisoryadvisory · PyPI

GHSA-gpvv-69j7-gwj8 Path Traversal in pip

HIGH Published 2021-06-09 Modified 2024-10-11 Official page ↗
Aliases
CVE-2019-20916
Ecosystem
PyPI
Packages
pip
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weaknesses
CWE-22
Reviewed
2021-05-04

Affected packages

• PyPI pip: < 19.2 → fixed in 19.2

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. A fix was committed 6704f2ace.

Related

Alias · CVE (1)

  • CVE-2019-20916 The pip package before 19.2 for Python allows Directory Traversal when a URL is given in an install command, because a Content-Disposition… vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References