{"answers":{"affected":"3 open source packages ship an affected version, including pip. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-8643 in the wild and no public exploit code.","fix":"Upgrade pip to 26.1.2 or later.","what":"CVE-2026-8643 is a medium-severity path traversal vulnerability in Python Packaging Authority pip, published on 1 Jun 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-8643 and fix it if it is affected.\n\nWhat it is: CVE-2026-8643 is a medium-severity path traversal vulnerability in Python Packaging Authority pip, published on 1 Jun 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-8643 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- pip (PyPI): affected all versions; fixed in 26.1.2\n- pip (PyPI): affected all versions; fixed in 26.1.2\n- pip (PyPI): affected all versions; fixed in 26.1.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-2026-8643/ (Markdown: https://insights.sbomify.com/CVE-2026-8643/index.md)","id":"CVE-2026-8643","markdown":"https://insights.sbomify.com/CVE-2026-8643/index.md","name":"CVE-2026-8643","record":{"aliases":["ALSA-2026:36193","ALSA-2026:36315","AZL-89325","AZL-89463","BELL-CVE-2026-8643","CLEANSTART-2026-HB96451","DEBIAN-CVE-2026-8643","ECHO-e120-768d-97d2","GHSA-wf93-45jw-7689","MINI-5x67-333m-f4gj","MINI-75pp-5cxq-4wc8","MINI-77qj-hgpq-xf63","MINI-8v39-v7x2-9fh3","MINI-cv85-xv3x-cpxx","MINI-ggf7-89fx-r2m8","MINI-wpxp-ww36-vv9q","OESA-2026-2629","OESA-2026-2630","OESA-2026-2631","PYSEC-2026-196","RHSA-2026:34891","RHSA-2026:36193","RHSA-2026:36315","RLSA-2026:36193","RLSA-2026:36315","ROOT-APP-PYPI-CVE-2026-8643","ROOT-OS-DEBIAN-13-CVE-2026-8643","SUSE-SU-2026:22300-1","UBUNTU-CVE-2026-8643","openSUSE-SU-2026:10940-1","openSUSE-SU-2026:20993-1"],"analysis":{"component_type":"developer_tool","fix_type":"patch","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python package installer","requires_auth":"low_privilege","summary":"Attackers can install malicious entry points outside the intended directory via crafted package metadata, potentially leading to code execution or privilege escalation.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"PSF","cpe":[{"product":"pip","vendor":"pypa"}],"cvss":{"score":4.1,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"pip would treat console_scripts and gui_scripts as paths instead of file names without sanitizing the resolved absolute path to the installation directory, leading to entry points being installed outside the installation directory.","ecosystems":["AlmaLinux:10","AlmaLinux:9","PyPI","Red Hat:enterprise_linux:10.2","Red Hat:enterprise_linux:9::appstream","Red Hat:hummingbird:1","Rocky Linux:10","Rocky Linux:9","SUSE:Linux Enterprise Server 16.0","SUSE:Linux Enterprise Server for SAP applications 16.0","openSUSE:Leap 16.0","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":"pip can extract console_scripts and gui_scripts outside installation directory","id":"CVE-2026-8643","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":20,"n_references":2,"next":{"headline":"IBM WebSphere Application Server is affected by an identity spoofing vulnerability","id":"CVE-2026-8644"},"packages":[{"ecosystem":"PyPI","fixed":["26.1.2"],"introduced":["0"],"last_affected":[],"package":"pip","purl":null,"source":"GHSA-wf93-45jw-7689"},{"ecosystem":"PyPI","fixed":["26.1.2"],"introduced":["0"],"last_affected":[],"package":"pip","purl":"pkg:pypi/pip","source":"GHSA-wf93-45jw-7689"},{"ecosystem":"PyPI","fixed":["26.1.2"],"introduced":["0"],"last_affected":[],"package":"pip","purl":"pkg:pypi/pip","source":"PYSEC-2026-196"},{"ecosystem":"AlmaLinux:10","fixed":["25.2-3.el10_2.5"],"introduced":["0"],"last_affected":[],"package":"python3.14-pip","purl":"pkg:rpm/almalinux/python3.14-pip","source":"ALSA-2026:36193"},{"ecosystem":"AlmaLinux:10","fixed":["25.2-3.el10_2.5"],"introduced":["0"],"last_affected":[],"package":"python3.14-pip-wheel","purl":"pkg:rpm/almalinux/python3.14-pip-wheel","source":"ALSA-2026:36193"},{"ecosystem":"AlmaLinux:9","fixed":["25.2-3.el9_8.5"],"introduced":["0"],"last_affected":[],"package":"python3.14-pip","purl":"pkg:rpm/almalinux/python3.14-pip","source":"ALSA-2026:36315"},{"ecosystem":"AlmaLinux:9","fixed":["25.2-3.el9_8.5"],"introduced":["0"],"last_affected":[],"package":"python3.14-pip-wheel","purl":"pkg:rpm/almalinux/python3.14-pip-wheel","source":"ALSA-2026:36315"},{"ecosystem":"Red Hat:enterprise_linux:10.2","fixed":["0:25.2-3.el10_2.5"],"introduced":["0"],"last_affected":[],"package":"python3.14-pip","purl":"pkg:rpm/redhat/python3.14-pip","source":"RHSA-2026:36193"},{"ecosystem":"Red Hat:enterprise_linux:10.2","fixed":["0:25.2-3.el10_2.5"],"introduced":["0"],"last_affected":[],"package":"python3.14-pip-wheel","purl":"pkg:rpm/redhat/python3.14-pip-wheel","source":"RHSA-2026:36193"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:25.2-3.el9_8.5"],"introduced":["0"],"last_affected":[],"package":"python3.14-pip","purl":"pkg:rpm/redhat/python3.14-pip","source":"RHSA-2026:36315"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:25.2-3.el9_8.5"],"introduced":["0"],"last_affected":[],"package":"python3.14-pip-wheel","purl":"pkg:rpm/redhat/python3.14-pip-wheel","source":"RHSA-2026:36315"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:26.1.1-3.1.hum1"],"introduced":["0"],"last_affected":[],"package":"python-pip","purl":"pkg:rpm/redhat/python-pip","source":"RHSA-2026:34891"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:26.1.1-3.1.hum1"],"introduced":["0"],"last_affected":[],"package":"python-pip-wheel","purl":"pkg:rpm/redhat/python-pip-wheel","source":"RHSA-2026:34891"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:26.1.1-3.1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3-pip","purl":"pkg:rpm/redhat/python3-pip","source":"RHSA-2026:34891"},{"ecosystem":"Rocky Linux:10","fixed":["0:25.2-3.el10_2.5"],"introduced":["0"],"last_affected":[],"package":"python3.14-pip","purl":"pkg:rpm/rocky-linux/python3.14-pip?distro=rocky-linux-10-aarch64\u0026epoch=0","source":"RLSA-2026:36193"},{"ecosystem":"Rocky Linux:9","fixed":["0:25.2-3.el9_8.5"],"introduced":["0"],"last_affected":[],"package":"python3.14-pip","purl":"pkg:rpm/rocky-linux/python3.14-pip?distro=rocky-linux-9-x86-64\u0026epoch=0","source":"RLSA-2026:36315"},{"ecosystem":"SUSE:Linux Enterprise Server 16.0","fixed":["25.0.1-160000.5.1"],"introduced":["0"],"last_affected":[],"package":"python-pip","purl":"pkg:rpm/suse/python-pip\u0026distro=SUSE%20Linux%20Enterprise%20Server%2016.0","source":"SUSE-SU-2026:22300-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP applications 16.0","fixed":["25.0.1-160000.5.1"],"introduced":["0"],"last_affected":[],"package":"python-pip","purl":"pkg:rpm/suse/python-pip\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20applications%2016.0","source":"SUSE-SU-2026:22300-1"},{"ecosystem":"openSUSE:Leap 16.0","fixed":["25.0.1-160000.5.1"],"introduced":["0"],"last_affected":[],"package":"python-pip","purl":"pkg:rpm/opensuse/python-pip\u0026distro=openSUSE%20Leap%2016.0","source":"openSUSE-SU-2026:20993-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["26.1.2-1.1"],"introduced":["0"],"last_affected":[],"package":"python-pip","purl":"pkg:rpm/opensuse/python-pip\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10940-1"}],"prev":{"headline":"Other in LanSchool Classic","id":"CVE-2026-8637"},"products":["pip"],"published":"2026-06-01","related":[{"cvss_score":7.8,"headline":"Supply chain in n/a","id":"CVE-2018-20225","kev_date_added":null,"published":"2020-05-08"},{"cvss_score":6.8,"headline":"Improper Input Validation in pip","id":"CVE-2013-1629","kev_date_added":null,"published":"2013-08-06"},{"cvss_score":5.6,"headline":"pip absolute path traversal during download from malicious package indexes","id":"CVE-2026-13346","kev_date_added":null,"published":"2026-07-29"},{"cvss_score":5.5,"headline":"Mercurial configuration injectable in repo revision when installing via pip","id":"CVE-2023-5752","kev_date_added":null,"published":"2023-10-24"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"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":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-09-16","vendors":["Python Packaging Authority"]},"summary":"Attackers can install malicious entry points outside the intended directory via crafted package metadata, potentially leading to code execution or privilege escalation.","url":"https://insights.sbomify.com/CVE-2026-8643/"}