VDB

CVE-2019-20916

CVE-2019-20916 PUBLISHED CVSS 7.5 HIGH

Path Traversal in pip

Reported by mitre · Published September 4, 2020

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
python2-pipAmazon Linux20.2.2-1.amzn2.0.2
python3-pipAmazon Linux20.2.2-1.amzn2.0.2
pippypa19.2
python-pipUbuntu:18.04:LTS9.0.1-2.3~ubuntu1.18.04.4

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected products

VendorProductVersions
n/an/an/a
pypapip
amazon:2python2-pip0
amazon:2python3-pip0
n/an/a*
amazon:2python-pip-wheel0
PyPIpip0

Timeline

  • Sep 4, 2020 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 6, 2026 Distribution Patch (36 in total, the first dated here)
  • Mar 6, 2026 Security Advisory (51 in total, the first dated here)
  • Sep 11, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2019-20916
vulnetix vdb fixes CVE-2019-20916

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-20916/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›