CVE-2019-20916 — The pip package before 19
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 _
Published
2020-09-04T19:20:55.000Z
Last modified
2024-08-05T03:00:17.373Z
01What is this vulnerability?
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.
02Affected products
| Vendor | Product | Versions |
|---|
| n | a / n/a | n/a |
03Active exploitation status
Not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog. EPSS is the best forward-looking signal — see the EPSS row above.
04Recommended remediation
- Patch to a fixed version listed in the vendor advisory (see references below).
- Mitigate with WAF rules, network egress filters, or feature flags where the patch is not yet available.
- Hunt historical logs for exploitation indicators — see Detection signatures below.
05Technical details
For the full vendor write-up, exploit chains, and reference implementations, see the references list in section 09.
06Detection signatures
Ask SARA in chat to draft a starting detection for this CVE in your stack of choice.
07Related CVEs
No directly-cited follow-up CVEs in the KB record for this advisory. The references list in section 09 carries the vendor cross-references.
08Timeline
- Published: 2020-09-04T19:20:55.000Z
- Last modified: 2024-08-05T03:00:17.373Z
09References
- github.com — https://github.com/pypa/pip/issues/6413
- github.com — https://github.com/gzpan123/pip/commit/a4c735b14a62f9cb864533808ac63936704f2ace
- github.com — https://github.com/pypa/pip/compare/19.1.1...19.2
- lists.debian.org — https://lists.debian.org/debian-lts-announce/2020/09/msg00010.html
- lists.opensuse.org — http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00005.html
- lists.opensuse.org — http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00010.html
- www.oracle.com — https://www.oracle.com/security-alerts/cpuapr2022.html
- www.oracle.com — https://www.oracle.com/security-alerts/cpujul2022.html
Want this in your SOAR or SIEM?
SARA's API returns EPSS, CVSS, KEV, and an analyst-grade summary in one call.
Read the API reference →