CVE-2019-20916
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.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (3.03%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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.
- CVSS 3.1
- 7.5 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- EPSS
- 3.03% probability · 87th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-22
- Affected
- pypa/pip · opensuse/leap · debian/debian linux · oracle/communications cloud native core network function cloud native environment · oracle/communications cloud native core policy
- Source
- cve@mitre.org
References
- http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00005.htmlMailing List, Third Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00010.htmlMailing List, Third Party Advisory
- https://github.com/gzpan123/pip/commit/a4c735b14a62f9cb864533808ac63936704f2acePatch
- https://github.com/pypa/pip/compare/19.1.1...19.2Patch
- https://github.com/pypa/pip/issues/6413Exploit, Patch
- https://lists.debian.org/debian-lts-announce/2020/09/msg00010.htmlMailing List, Third Party Advisory
- https://www.oracle.com/security-alerts/cpuapr2022.htmlPatch, Third Party Advisory
- https://www.oracle.com/security-alerts/cpujul2022.htmlPatch, Third Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00005.htmlMailing List, Third Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00010.htmlMailing List, Third Party Advisory
- https://github.com/gzpan123/pip/commit/a4c735b14a62f9cb864533808ac63936704f2acePatch
- https://github.com/pypa/pip/compare/19.1.1...19.2Patch
- https://github.com/pypa/pip/issues/6413Exploit, Patch
- https://lists.debian.org/debian-lts-announce/2020/09/msg00010.htmlMailing List, Third Party Advisory
- https://www.oracle.com/security-alerts/cpuapr2022.htmlPatch, Third Party Advisory
- https://www.oracle.com/security-alerts/cpujul2022.htmlPatch, Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.