CVE-2019-20916

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.

Severity
HIGH
CVSS v3
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N · source nvd
Exploit chance (EPSS)
3.003%
chance of exploitation in the next 30 days
higher than 87.6% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0

Weakness

Timeline

  1. 2020-09-04Published by the CNA19:20 UTC
  2. 2021-06-09GitHub advisory published (GHSA-gpvv-69j7-gwj8)278 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-gpvv-69j7-gwj8, affected packages:

PackageVulnerable versionsFixed in
PyPI pipbefore 19.219.2

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
pypa pipbefore 19.2fixed in 19.219.2
debian debian_linux9.0no fix listednot listed
opensuse leap15.1no fix listed15.2no fix listednot listednot listed
oracle communications_cloud_native_core_network_function_cloud_native_environment1.10.0no fix listed22.1.0no fix listednot listednot listed
oracle communications_cloud_native_core_policy1.15.0no fix listednot listed

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources