GHSA-gpvv-69j7-gwj8

Path Traversal in pip

At a glance

Published
Updated
CVE
CVE-2019-20916
Aliases
PYSEC-2020-173
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS_V4
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

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.

Affected packages

PackageVersions
PyPI · pipintroduced 0, fixed 19.2

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database