{"answers":{"affected":"3 open source packages ship an affected version, including pip. It affects 5 products.","exploited":"There is no known exploitation of CVE-2019-20916 in the wild and no public exploit code.","fix":"Upgrade pip to 19.2 or later.","what":"CVE-2019-20916 is a high-severity path traversal vulnerability in Debian Debian Linux, published on 4 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2019-20916 and fix it if it is affected.\n\nWhat it is: CVE-2019-20916 is a high-severity path traversal vulnerability in Debian Debian Linux, published on 4 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2019-20916 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- pip (PyPI): affected all versions; fixed in 19.2\n- pip (PyPI): affected all versions; fixed in 19.2\n- pip (PyPI): affected all versions; fixed in 19.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2019-20916/ (Markdown: https://insights.sbomify.com/CVE-2019-20916/index.md)","id":"CVE-2019-20916","markdown":"https://insights.sbomify.com/CVE-2019-20916/index.md","name":"CVE-2019-20916","record":{"aliases":["CLSA-2026-1772756023","DEBIAN-CVE-2019-20916","DLA-2370-1","GHSA-gpvv-69j7-gwj8","PYSEC-2020-173","RHSA-2020:4432","RHSA-2022:5234","ROOT-APP-PYPI-CVE-2019-20916","SUSE-SU-2020:2698-1","SUSE-SU-2020:2726-1","SUSE-SU-2020:2784-1","SUSE-SU-2020:3016-1","SUSE-SU-2020:3565-1","SUSE-SU-2020:3566-1","SUSE-SU-2020:3593-1","SUSE-SU-2020:3594-1","SUSE-SU-2020:3596-1","SUSE-SU-2020:3597-1","SUSE-SU-2020:3599-1","SUSE-SU-2020:3737-1","SUSE-SU-2020:3765-1","SUSE-SU-2021:0344-1","SUSE-SU-2022:1454-1","SUSE-SU-2023:0516-2","UBUNTU-CVE-2019-20916","USN-4601-1","openSUSE-SU-2020:1598-1","openSUSE-SU-2020:1613-1","openSUSE-SU-2020:2143-1","openSUSE-SU-2020:2152-1","openSUSE-SU-2020:2169-1","openSUSE-SU-2020:2184-1","openSUSE-SU-2020:2185-1","openSUSE-SU-2020:2189-1","openSUSE-SU-2020:2190-1","openSUSE-SU-2020:2211-1","openSUSE-SU-2024:11272-1","openSUSE-SU-2024:14029-1"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Python pip package","requires_auth":"none","summary":"Attackers can overwrite critical files like SSH keys via directory traversal in pip, leading to code execution or privilege escalation.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"leap","vendor":"opensuse"},{"product":"communications_cloud_native_core_network_function_cloud_native_environment","vendor":"oracle"},{"product":"communications_cloud_native_core_policy","vendor":"oracle"},{"product":"pip","vendor":"pypa"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":["PyPI","Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::baseos","SUSE:Enterprise Storage 5","SUSE:Enterprise Storage 6","SUSE:Enterprise Storage 7","SUSE:HPE Helion OpenStack 8","SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise High Performance Computing 15-ESPOS","SUSE:Linux Enterprise High Performance Computing 15-LTSS","SUSE:Linux Enterprise Module for Basesystem 15 SP1","SUSE:Linux Enterprise Module for Basesystem 15 SP2","SUSE:Linux Enterprise Module for Basesystem 15 SP3","SUSE:Linux Enterprise Module for Containers 12","SUSE:Linux Enterprise Module for Desktop Applications 15 SP1","SUSE:Linux Enterprise Module for Desktop Applications 15 SP2","SUSE:Linux Enterprise Module for Development Tools 15 SP1","SUSE:Linux Enterprise Module for Development Tools 15 SP2","SUSE:Linux Enterprise Module for Public Cloud 12","SUSE:Linux Enterprise Module for Python 2 15 SP1","SUSE:Linux Enterprise Module for Python 2 15 SP2","SUSE:Linux Enterprise Module for Python 2 15 SP3","SUSE:Linux Enterprise Module for Web and Scripting 12","SUSE:Linux Enterprise Real Time 15 SP2","SUSE:Linux Enterprise Server 12 SP2-BCL","SUSE:Linux Enterprise Server 12 SP2-LTSS","SUSE:Linux Enterprise Server 12 SP3-BCL","SUSE:Linux Enterprise Server 12 SP3-LTSS","SUSE:Linux Enterprise Server 12 SP4-LTSS","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 15 SP1-LTSS","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server 15-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP2","SUSE:Linux Enterprise Server for SAP Applications 12 SP3","SUSE:Linux Enterprise Server for SAP Applications 12 SP4","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15","SUSE:Linux Enterprise Server for SAP Applications 15 SP1","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:Linux Enterprise Workstation Extension 12 SP5","SUSE:OpenStack Cloud 6-LTSS","SUSE:OpenStack Cloud 7","SUSE:OpenStack Cloud 8","SUSE:OpenStack Cloud 9","SUSE:OpenStack Cloud Crowbar 8","SUSE:OpenStack Cloud Crowbar 9","openSUSE:Leap 15.1","openSUSE:Leap 15.2","openSUSE:Leap 15.3","openSUSE:Leap 15.4","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Path Traversal in pip","id":"CVE-2019-20916","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":"debian:debian_linux","products":["debian:debian_linux","opensuse:leap","oracle:communications_cloud_native_core_policy"],"type":"path_traversal","year":"2019"},"n_packages":271,"n_references":8,"next":{"headline":"Null dereference in n/a","id":"CVE-2019-20917"},"packages":[{"ecosystem":"PyPI","fixed":["19.2"],"introduced":["0"],"last_affected":[],"package":"pip","purl":null,"source":"GHSA-gpvv-69j7-gwj8"},{"ecosystem":"PyPI","fixed":["19.2"],"introduced":["0"],"last_affected":[],"package":"pip","purl":"pkg:pypi/pip","source":"GHSA-gpvv-69j7-gwj8"},{"ecosystem":"PyPI","fixed":["19.2"],"introduced":["0"],"last_affected":[],"package":"pip","purl":"pkg:pypi/pip","source":"PYSEC-2020-173"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:15.1.0-7.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-virtualenv","purl":"pkg:rpm/redhat/python-virtualenv","source":"RHSA-2022:5234"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:15.1.0-7.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-virtualenv","purl":"pkg:rpm/redhat/python-virtualenv","source":"RHSA-2022:5234"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:15.1.0-7.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-virtualenv","purl":"pkg:rpm/redhat/python-virtualenv","source":"RHSA-2022:5234"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:15.1.0-7.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-virtualenv","purl":"pkg:rpm/redhat/python-virtualenv","source":"RHSA-2022:5234"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:9.0.3-18.el8"],"introduced":["0"],"last_affected":[],"package":"python3-pip","purl":"pkg:rpm/redhat/python3-pip","source":"RHSA-2020:4432"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:9.0.3-18.el8"],"introduced":["0"],"last_affected":[],"package":"platform-python-pip","purl":"pkg:rpm/redhat/platform-python-pip","source":"RHSA-2020:4432"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:9.0.3-18.el8"],"introduced":["0"],"last_affected":[],"package":"python-pip","purl":"pkg:rpm/redhat/python-pip","source":"RHSA-2020:4432"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:9.0.3-18.el8"],"introduced":["0"],"last_affected":[],"package":"python3-pip-wheel","purl":"pkg:rpm/redhat/python3-pip-wheel","source":"RHSA-2020:4432"},{"ecosystem":"SUSE:Enterprise Storage 5","fixed":["2.7.17-28.59.1"],"introduced":["0"],"last_affected":[],"package":"python","purl":"pkg:rpm/suse/python\u0026distro=SUSE%20Enterprise%20Storage%205","source":"SUSE-SU-2020:3765-1"},{"ecosystem":"SUSE:Enterprise Storage 5","fixed":["2.7.17-28.59.1"],"introduced":["0"],"last_affected":[],"package":"python-base","purl":"pkg:rpm/suse/python-base\u0026distro=SUSE%20Enterprise%20Storage%205","source":"SUSE-SU-2020:3765-1"},{"ecosystem":"SUSE:Enterprise Storage 5","fixed":["2.7.17-28.59.1"],"introduced":["0"],"last_affected":[],"package":"python-doc","purl":"pkg:rpm/suse/python-doc\u0026distro=SUSE%20Enterprise%20Storage%205","source":"SUSE-SU-2020:3765-1"},{"ecosystem":"SUSE:Enterprise Storage 5","fixed":["40.6.2-4.18.1"],"introduced":["0"],"last_affected":[],"package":"python-setuptools","purl":"pkg:rpm/suse/python-setuptools\u0026distro=SUSE%20Enterprise%20Storage%205","source":"SUSE-SU-2020:3594-1"},{"ecosystem":"SUSE:Enterprise Storage 5","fixed":["3.4.10-25.58.1"],"introduced":["0"],"last_affected":[],"package":"python3","purl":"pkg:rpm/suse/python3\u0026distro=SUSE%20Enterprise%20Storage%205","source":"SUSE-SU-2020:3596-1"},{"ecosystem":"SUSE:Enterprise Storage 5","fixed":["3.4.10-25.63.1"],"introduced":["0"],"last_affected":[],"package":"python3","purl":"pkg:rpm/suse/python3\u0026distro=SUSE%20Enterprise%20Storage%205","source":"SUSE-SU-2021:0344-1"},{"ecosystem":"SUSE:Enterprise Storage 5","fixed":["3.4.10-25.58.1"],"introduced":["0"],"last_affected":[],"package":"python3-base","purl":"pkg:rpm/suse/python3-base\u0026distro=SUSE%20Enterprise%20Storage%205","source":"SUSE-SU-2020:3596-1"},{"ecosystem":"SUSE:Enterprise Storage 5","fixed":["3.4.10-25.63.2"],"introduced":["0"],"last_affected":[],"package":"python3-base","purl":"pkg:rpm/suse/python3-base\u0026distro=SUSE%20Enterprise%20Storage%205","source":"SUSE-SU-2021:0344-1"},{"ecosystem":"SUSE:Enterprise Storage 6","fixed":["20.0.2-150100.6.18.1"],"introduced":["0"],"last_affected":[],"package":"python-pip","purl":"pkg:rpm/suse/python-pip\u0026distro=SUSE%20Enterprise%20Storage%206","source":"SUSE-SU-2023:0516-2"},{"ecosystem":"SUSE:Enterprise Storage 6","fixed":["20.0.2-150100.6.18.1"],"introduced":["0"],"last_affected":[],"package":"python-pip-wheel","purl":"pkg:rpm/suse/python-pip-wheel\u0026distro=SUSE%20Enterprise%20Storage%206","source":"SUSE-SU-2023:0516-2"},{"ecosystem":"SUSE:Enterprise Storage 7","fixed":["20.0.2-150100.6.18.1"],"introduced":["0"],"last_affected":[],"package":"python-pip","purl":"pkg:rpm/suse/python-pip\u0026distro=SUSE%20Enterprise%20Storage%207","source":"SUSE-SU-2023:0516-2"},{"ecosystem":"SUSE:Enterprise Storage 7","fixed":["20.0.2-150100.6.18.1"],"introduced":["0"],"last_affected":[],"package":"python-pip-wheel","purl":"pkg:rpm/suse/python-pip-wheel\u0026distro=SUSE%20Enterprise%20Storage%207","source":"SUSE-SU-2023:0516-2"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["2.7.17-28.59.1"],"introduced":["0"],"last_affected":[],"package":"python","purl":"pkg:rpm/suse/python\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2020:3765-1"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["2.7.17-28.59.1"],"introduced":["0"],"last_affected":[],"package":"python-base","purl":"pkg:rpm/suse/python-base\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2020:3765-1"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["2.7.17-28.59.1"],"introduced":["0"],"last_affected":[],"package":"python-doc","purl":"pkg:rpm/suse/python-doc\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2020:3765-1"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["9.0.1-3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-pip","purl":"pkg:rpm/suse/python-pip\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2020:2726-1"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["40.6.2-4.18.1"],"introduced":["0"],"last_affected":[],"package":"python-setuptools","purl":"pkg:rpm/suse/python-setuptools\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2020:3594-1"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["3.4.10-25.58.1"],"introduced":["0"],"last_affected":[],"package":"python3","purl":"pkg:rpm/suse/python3\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2020:3596-1"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["3.4.10-25.63.1"],"introduced":["0"],"last_affected":[],"package":"python3","purl":"pkg:rpm/suse/python3\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2021:0344-1"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["3.4.10-25.58.1"],"introduced":["0"],"last_affected":[],"package":"python3-base","purl":"pkg:rpm/suse/python3-base\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2020:3596-1"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["3.4.10-25.63.2"],"introduced":["0"],"last_affected":[],"package":"python3-base","purl":"pkg:rpm/suse/python3-base\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2021:0344-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","fixed":["20.0.2-150100.6.18.1"],"introduced":["0"],"last_affected":[],"package":"python-pip","purl":"pkg:rpm/suse/python-pip\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSS","source":"SUSE-SU-2023:0516-2"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","fixed":["20.0.2-150100.6.18.1"],"introduced":["0"],"last_affected":[],"package":"python-pip-wheel","purl":"pkg:rpm/suse/python-pip-wheel\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSS","source":"SUSE-SU-2023:0516-2"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["20.0.2-150100.6.18.1"],"introduced":["0"],"last_affected":[],"package":"python-pip","purl":"pkg:rpm/suse/python-pip\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2023:0516-2"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["20.0.2-150100.6.18.1"],"introduced":["0"],"last_affected":[],"package":"python-pip-wheel","purl":"pkg:rpm/suse/python-pip-wheel\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2023:0516-2"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15-ESPOS","fixed":["2.7.17-7.47.1"],"introduced":["0"],"last_affected":[],"package":"python","purl":"pkg:rpm/suse/python\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOS","source":"SUSE-SU-2020:3597-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15-ESPOS","fixed":["2.7.17-7.47.1"],"introduced":["0"],"last_affected":[],"package":"python-base","purl":"pkg:rpm/suse/python-base\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOS","source":"SUSE-SU-2020:3597-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15-ESPOS","fixed":["10.0.1-3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-pip","purl":"pkg:rpm/suse/python-pip\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOS","source":"SUSE-SU-2020:2784-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15-ESPOS","fixed":["10.0.1-3.6.1"],"introduced":["0"],"last_affected":[],"package":"python-pip","purl":"pkg:rpm/suse/python-pip\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOS","source":"SUSE-SU-2020:3565-1"}],"prev":{"headline":"Memory corruption in n/a","id":"CVE-2019-20915"},"products":["n/a"],"published":"2020-09-04","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"Attackers can overwrite critical files like SSH keys via directory traversal in pip, leading to code execution or privilege escalation.","url":"https://insights.sbomify.com/CVE-2019-20916/"}