NetSight
high7.5

CVE-2019-20916

Path Traversal in pip

Impact

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

EcosystemPackageAffectedFixed in
pippip< 19.219.2

Affected products

VendorProductAffected versions
PypaPip
before 19.2
OpensuseLeap
Versions 15.1, 15.2
DebianDebian Linux
Version 9.0
OracleCommunications Cloud Native Core Network Function Cloud Native Environment
Versions 1.10.0, 22.1.0
OracleCommunications Cloud Native Core Policy
Version 1.15.0

Weakness classification

References