{"id":"CVE-2019-20916","aliases":["CVE-2019-20916","GHSA-gpvv-69j7-gwj8","PYSEC-2020-173"],"related":[],"kind":"vulnerability","state":"published","title":"Path Traversal in pip","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El paquete pip versiones anteriores a 19.2 para Python, permite un Salto de Directorio cuando una URL es proporcionada en un comando de instalación, porque un encabezado Content-Disposition puede tener ../ en un nombre de archivo, como es demostrado al sobrescribir el archivo /root/.ssh/authorized_keys.&#xa0;Esto ocurre en la función _download_http_url en el archivo _internal/download.py","source":"nvd"}],"published":"2020-09-04T19:20:55.000Z","modified":"2026-06-17T02:31:25.907Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"19.2"}],"ecosystem":"PyPI","package":"pip","purl":"pkg:pypi/pip","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"19.2"}],"vendor":"pypa","product":"pip","cpe":"cpe:2.3:a:pypa:pip:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"15.1"},{"status":"affected","version":"15.2"}],"vendor":"opensuse","product":"leap","cpe":"cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"9.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"1.10.0"},{"status":"affected","version":"22.1.0"}],"vendor":"oracle","product":"communications_cloud_native_core_network_function_cloud_native_environment","cpe":"cpe:2.3:a:oracle:communications_cloud_native_core_network_function_cloud_native_environment:1.10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"1.15.0"}],"vendor":"oracle","product":"communications_cloud_native_core_policy","cpe":"cpe:2.3:a:oracle:communications_cloud_native_core_policy:1.15.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"a4c735b14a62f9cb864533808ac63936704f2ace"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"19.2"}],"ecosystem":"PyPI","package":"pip","purl":"pkg:pypi/pip","repo":"https://github.com/gzpan123/pip","source":"pysec"}],"references":[{"url":"https://github.com/pypa/pip/issues/6413","tags":["exploit","patch","report","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/gzpan123/pip/commit/a4c735b14a62f9cb864533808ac63936704f2ace","tags":["fix","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/pypa/pip/compare/19.1.1...19.2","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/09/msg00010.html","tags":["mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00005.html","tags":["mailing-list","third-party-advisory","vendor-advisory","web","x-refsource-suse","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00010.html","tags":["mailing-list","third-party-advisory","vendor-advisory","web","x-refsource-suse","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-20916","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-gpvv-69j7-gwj8","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pip/PYSEC-2020-173.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/pip","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2019-20916","url":"https://www.cve.org/CVERecord?id=CVE-2019-20916","licence":"CVE Terms of Use","modified":"2024-08-05T03:00:17.373Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gpvv-69j7-gwj8","url":"https://github.com/advisories/GHSA-gpvv-69j7-gwj8","licence":"CC-BY-4.0","modified":"2024-10-14T18:39:41.495Z"},{"source":"nvd","name":"NVD","id":"CVE-2019-20916","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-20916","licence":"Public domain","modified":"2026-06-17T02:31:25.907Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2020-173","url":"https://osv.dev/vulnerability/PYSEC-2020-173","licence":"CC-BY-4.0","modified":"2023-11-08T04:01:31.361Z"}],"updatedAt":"2026-11-25T22:57:49.997Z","epss":{"score":0.03003,"percentile":0.87742,"date":"2026-12-01T12:00:22.000Z"}}