high7.5
CVE-2019-20916
Path Traversal in pip
Impact
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. A fix was committed 6704f2ace.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | pip | < 19.2 | 19.2 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Pypa | Pip | before 19.2 |
| Opensuse | Leap | Versions 15.1, 15.2 |
| Debian | Debian Linux | Version 9.0 |
| Oracle | Communications Cloud Native Core Network Function Cloud Native Environment | Versions 1.10.0, 22.1.0 |
| Oracle | Communications Cloud Native Core Policy | Version 1.15.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00005.html
- http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00010.html
- https://github.com/gzpan123/pip/commit/a4c735b14a62f9cb864533808ac63936704f2ace
- https://github.com/pypa/pip/compare/19.1.1...19.2
- https://github.com/pypa/pip/issues/6413
- https://lists.debian.org/debian-lts-announce/2020/09/msg00010.html
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://github.com/advisories/GHSA-gpvv-69j7-gwj8
- https://nvd.nist.gov/vuln/detail/CVE-2019-20916
- https://github.com/pypa/advisory-database/tree/main/vulns/pip/PYSEC-2020-173.yaml