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
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory
Timeline
- 2020-09-04Published by the CNA19:20 UTC
- 2021-06-09GitHub advisory published (GHSA-gpvv-69j7-gwj8)278 days after publication
Exploit and advisory records
GitHub advisory GHSA-gpvv-69j7-gwj8, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI pip | before 19.2 | 19.2 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| pypa pip | before 19.2fixed in 19.2 | 19.2 |
| debian debian_linux | 9.0no fix listed | not listed |
| opensuse leap | 15.1no fix listed15.2no fix listed | not listednot listed |
| oracle communications_cloud_native_core_network_function_cloud_native_environment | 1.10.0no fix listed22.1.0no fix listed | not listednot listed |
| oracle communications_cloud_native_core_policy | 1.15.0no fix listed | not listed |
References
- https://github.com/gzpan123/pip/commit/a4c735b14a62f9cb864533808ac63936704f2ace
- https://github.com/pypa/pip/compare/19.1.1...19.2
- https://github.com/pypa/pip/issues/6413
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.oracle.com/security-alerts/cpujul2022.html
- http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00005.html
- http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00010.html
- https://lists.debian.org/debian-lts-announce/2020/09/msg00010.html
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2019-20916'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2019-20916'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2019-20916'curl 'https://api.contrastcyber.com/cve_products/CVE-2019-20916'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).