CVE-2019-20916
HIGH 7.5CVSS 3.1Path Traversal in pip
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.
- Published
- 4 Sep 2020
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-gpvv-69j7-gwj8PYSEC-2020-173
- Sources
- NVDJSONOSV GHSA-gpvv-69j7-gwj8JSONOSV PYSEC-2020-173JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pypa | pipcpe:2.3:a:pypa:pip:*:*:*:*:*:*:*:* |
< 19.2 | 19.2 |
| NVD | opensuse | leapcpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:* |
= 15.1 | |
| NVD | opensuse | leapcpe:2.3:o:opensuse:leap:15.2:*:*:*:*:*:*:* |
= 15.2 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | oracle | communications_cloud_native_core_network_function_cloud_native_environmentcpe:2.3:a:oracle:communications_cloud_native_core_network_function_cloud_native_environment:1.10.0:*:*:*:*:*:*:* |
= 1.10.0 | |
| NVD | oracle | communications_cloud_native_core_network_function_cloud_native_environmentcpe:2.3:a:oracle:communications_cloud_native_core_network_function_cloud_native_environment:22.1.0:*:*:*:*:*:*:* |
= 22.1.0 | |
| NVD | oracle | communications_cloud_native_core_policycpe:2.3:a:oracle:communications_cloud_native_core_policy:1.15.0:*:*:*:*:*:*:* |
= 1.15.0 | |
| OSV | PyPI | pip | < 19.2 | 19.2 |
References
- http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00005.html · Mailing List, Third Party Advisory, WEB
- http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00010.html · Mailing List, Third Party Advisory, WEB
- https://github.com/gzpan123/pip/commit/a4c735b14a62f9cb864533808ac63936704f2ace · Patch, WEB, FIX
- https://github.com/pypa/pip/compare/19.1.1...19.2 · Patch, WEB
- https://github.com/pypa/pip/issues/6413 · Exploit, Patch, WEB, REPORT
- https://lists.debian.org/debian-lts-announce/2020/09/msg00010.html · Mailing List, Third Party Advisory, WEB
- https://www.oracle.com/security-alerts/cpuapr2022.html · Patch, Third Party Advisory, WEB
- https://www.oracle.com/security-alerts/cpujul2022.html · Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2019-20916 · ADVISORY
- https://github.com/advisories/GHSA-gpvv-69j7-gwj8 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/pip/PYSEC-2020-173.yaml · WEB
- https://github.com/pypa/pip · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 4 Sep 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 4 Sep 2020)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 9 Jun 2021)