# CVE-2019-20916: Path Traversal in pip

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.00%, higher than 87% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-09-04T19:20:55.000Z
- Modified: 2026-06-17T02:31:25.907Z
- Also known as: GHSA-gpvv-69j7-gwj8, PYSEC-2020-173
- Weaknesses: CWE-22
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- pip (PyPI): before 19.2; before a4c735b14a62f9cb864533808ac63936704f2ace
- pypa pip: before 19.2
- opensuse leap: 15.1; 15.2
- debian debian_linux: 9.0
- oracle communications_cloud_native_core_network_function_cloud_native_environment: 1.10.0; 22.1.0
- oracle communications_cloud_native_core_policy: 1.15.0

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/pypa/pip/issues/6413> (exploit, patch, report, web)
- <https://github.com/gzpan123/pip/commit/a4c735b14a62f9cb864533808ac63936704f2ace> (fix, patch, web)
- <https://github.com/pypa/pip/compare/19.1.1...19.2> (patch, web)
- <https://lists.debian.org/debian-lts-announce/2020/09/msg00010.html> (mailing-list, third-party-advisory, web)
- <http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00005.html> (mailing-list, third-party-advisory, vendor-advisory, web)
- <http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00010.html> (mailing-list, third-party-advisory, vendor-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)

## Sources

- CVE List: [CVE-2019-20916](https://www.cve.org/CVERecord?id=CVE-2019-20916), CVE Terms of Use, modified 2024-08-05
- GitHub Advisory Database: [GHSA-gpvv-69j7-gwj8](https://github.com/advisories/GHSA-gpvv-69j7-gwj8), CC-BY-4.0, modified 2024-10-14
- NVD: [CVE-2019-20916](https://nvd.nist.gov/vuln/detail/CVE-2019-20916), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-173](https://osv.dev/vulnerability/PYSEC-2020-173), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2019-20916 · Whole record: https://cve.day/CVE-2019-20916.json · Rebuilt by cve.day 2026-11-25T22:57:49.997Z
