CVE-2019-20916: pip - Path Traversal
- Cve: CVE-2019-20916
- Name: pip - Path Traversal
- 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.
- Impact: Attackers can overwrite arbitrary files on the system, potentially leading to privilege escalation or system compromise.
- Remediation: Update pip to version 19.2 or later.
- Vulnerability type: path_traversal
- Vulnerability impact: file_system_write
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Epss score: 0.03003
- Epss percentile: 0.87723
- Assignee: [email protected]
- Published at: 2020-09-04T20:15:11Z
- Age in days: 2272
- Modified at: 2026-06-17T02:31:25Z
- Patch available: yes
- Public exploits total: 1
- References total: 8
- Products total: 5
- Oss: yes
- Projects total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2019-20916
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/pypa/pip/issues/6413 | nvd | 2020-09-04 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/gzpan123/pip/commit/a4c735b14a62f9cb864533808ac63936704f2ace | Patch |
| https://github.com/pypa/pip/compare/19.1.1...19.2 | Patch |
| https://github.com/pypa/pip/issues/6413 | Exploit, Patch |
| https://www.oracle.com/security-alerts/cpuapr2022.html | Patch, Third Party Advisory |
| https://www.oracle.com/security-alerts/cpujul2022.html | Patch, Third Party Advisory |
| http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00005.html | Mailing List, Third Party Advisory |
| http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00010.html | Mailing List, Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2020/09/msg00010.html | Mailing List, Third Party Advisory |
Products
Same in every row:
- Platform bound: no
- Sources: nvd
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| pypa/pip | compare, issues | yes | /v1/repositories/pypa/pip |
| gzpan123/pip | commit | yes | /v1/repositories/gzpan123/pip |
Index
- Repositories: 244
- Repositories high signal: 155
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2020-09-04
- Remote: yes
- Exposed hosts: 4739835
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports