# CVE-2026-8643: pip can extract console_scripts and gui_scripts outside installation directory

- Severity: Medium 4.1 (CVSS:4.0, scored by PSF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-01)
- Published: 2026-06-01T15:01:32.143Z
- Modified: 2026-09-16T13:18:08.000Z
- Also known as: GHSA-wf93-45jw-7689, PYSEC-2026-196
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: PSF

## 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.

(As written by CVE List.)

## Affected

- pip: from 24.0 before 26.1.2
- automation-controller: no versions given (not affected: from 0:4.6.30-2.el8ap before *; from 0:4.6.30-2.el9ap before *; from 0:4.7.14-3.el9ap before *)
- python3.14-pip: no versions given (not affected: from 0:25.2-3.el10_2.5 before *; from 0:25.2-3.el9_8.5 before *)
- ansible-automation-platform-25/controller-rhel8: no versions given (not affected: from 1784049109 before *)
- ansible-automation-platform-26/de-minimal-rhel9: no versions given (not affected: from 1782711769 before *)
- ansible-automation-platform-26/de-supported-rhel9: no versions given (not affected: from 1782713671 before *)
- ansible-automation-platform-26/gateway-rhel9: no versions given (not affected: from 1782761510 before *)
- ansible-automation-platform-tech-preview/metrics-service-rhel9: no versions given (not affected: from 1783969139 before *)
- ansible-automation-platform-26/controller-rhel9: no versions given (not affected: from 1785753810 before *)
- discovery/discovery-server-rhel9: no versions given (not affected: from 1782763840 before *; from 1786638573 before *)
- python-pip-main: no versions given (not affected: from 26.1.1-3.1.hum1 before *; from 26.1.2-1.hum1 before *)
- mta/mta-rhel9-operator: no versions given (not affected: from 1786481481 before *)
- rhoai/odh-caikit-tgis-serving-rhel9: no versions given (not affected: from 1783082430 before *)
- rhoai/odh-kserve-storage-initializer-rhel9: no versions given (not affected: from 1783024305 before *; from 1783010225 before *; from 1782133213 before *)
- rhoai/odh-modelmesh-runtime-adapter-rhel9: no versions given (not affected: from 1783342900 before *)
- rhoai/odh-training-cuda121-torch24-py311-rhel9: no versions given (not affected: from 1783998418 before *; from 1782471555 before *; from 1782132167 before *)
- rhoai/odh-training-cuda124-torch25-py311-rhel9: no versions given (not affected: from 1783998418 before *; from 1782471579 before *; from 1782132207 before *)
- rhoai/odh-training-rocm62-torch24-py311-rhel9: no versions given (not affected: from 1782475830 before *; from 1782471656 before *; from 1782132286 before *)
- rhoai/odh-training-rocm62-torch25-py311-rhel9: no versions given (not affected: from 1782475830 before *; from 1782471663 before *; from 1782132236 before *)
- rhai/base-image-cpu-rhel9: no versions given (not affected: from 1782929133 before *; from 1782915416 before *; from 1782914779 before *)
- rhai/base-image-spyre-rhel9: no versions given (not affected: from 1782928984 before *; from 1782914833 before *; from 1782916020 before *)
- rhai/base-image-tpu-rhel9: no versions given (not affected: from 1782968171 before *; from 1782914629 before *; from 1782914653 before *)
- rhai/base-image-cuda-rhel9: no versions given (not affected: from 1782929069 before *; from 1782915184 before *)
- rhai/base-image-rocm-rhel9: no versions given (not affected: from 1782928977 before *; from 1782914721 before *; from 1782914751 before *)
- rhai/base-image-neuron-rhel9: no versions given (not affected: from 1782915056 before *)
- rhai/base-image-cuda-12.9-rhel9: no versions given (not affected: from 1782914960 before *)
- rhai/base-image-rocm-6.4-rhel9: no versions given (not affected: from 1782914644 before *)
- rhai/base-image-rocm-7.0-rhel9: no versions given (not affected: from 1782914706 before *)
- rhai/base-image-cuda-13.0-rhel9: no versions given (not affected: from 1782915015 before *)
- rhoai/odh-mlserver-rhel9: no versions given (not affected: from 1782887848 before *; from 1782726504 before *)
- rhoai/odh-training-cuda128-torch28-py312-rhel9: no versions given (not affected: from 1783073038 before *; from 1782132237 before *)
- rhoai/odh-training-cuda128-torch29-py312-rhel9: no versions given (not affected: from 1782991170 before *; from 1782132240 before *)
- rhoai/odh-training-rocm64-torch28-py312-rhel9: no versions given (not affected: from 1783069204 before *; from 1782132163 before *)
- rhoai/odh-training-rocm64-torch29-py312-rhel9: no versions given (not affected: from 1782991170 before *; from 1782132297 before *)
- rhoai/odh-th06-cpu-torch210-py312-rhel9: no versions given (not affected: from 1782135464 before *)
- rhoai/odh-th06-cuda130-torch210-py312-rhel9: no versions given (not affected: from 1782136276 before *)
- rhoai/odh-th06-rocm64-torch291-py312-rhel9: no versions given (not affected: from 1782135346 before *)
- rhoai/odh-automl-rhel9: no versions given (not affected: from 1786612415 before *)
- rhoai/odh-autorag-rhel9: no versions given (not affected: from 1786612637 before *)
- rhoai/odh-llama-stack-core-rhel9: no versions given (not affected: from 1786635926 before *)
- rhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9: no versions given (not affected: from 1787073866 before *)
- rhoai/odh-pipeline-runtime-minimal-cpu-py312-rhel9: no versions given (not affected: from 1787073936 before *)
- rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9: no versions given (not affected: from 1787073873 before *)
- rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9: no versions given (not affected: from 1787073459 before *)
- rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9: no versions given (not affected: from 1787073611 before *)
- rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9: no versions given (not affected: from 1787073451 before *)
- rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9: no versions given (not affected: from 1787073451 before *)
- rhoai/odh-trustyai-garak-lls-provider-dsp-rhel9: no versions given (not affected: from 1786613209 before *)
- rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9: no versions given (not affected: from 1787121387 before *)
- rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9: no versions given (not affected: from 1787074331 before *)
- rhoai/odh-workbench-jupyter-minimal-cpu-py312-rhel9: no versions given (not affected: from 1787073913 before *)
- rhoai/odh-workbench-jupyter-minimal-cuda-py312-rhel9: no versions given (not affected: from 1787074078 before *)
- rhoai/odh-workbench-jupyter-minimal-rocm-py312-rhel9: no versions given (not affected: from 1787073929 before *)
- rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9: no versions given (not affected: from 1787073605 before *)
- rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9: no versions given (not affected: from 1787073546 before *)
- rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9: no versions given (not affected: from 1787073717 before *)
- rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9: no versions given (not affected: from 1787073713 before *)
- rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9: no versions given (not affected: from 1787073593 before *)
- rhtas/model-transparency-rhel9: no versions given (not affected: from 1782485441 before *)
- exploit-intelligence-tech-preview/vulnerability-analysis-rhel9: no versions given
- and 87 more: see the JSON

## Every score

- PSF: CVSS:4.0 4.1 Medium `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`
- redhat-SADP: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.0 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/pypa/pip/pull/14000> (fix, issue-tracking, patch, web)
- <https://mail.python.org/archives/list/security-announce@python.org/thread/YV63UET5D3OOJY7O4M5XCVYO2YM4NBYJ/> (advisory, mailing-list, vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2026/06/01/5> (advisory, mailing-list, third-party-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2026-8643> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2460927> (issue-tracking, web)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-8643.json> (web)
- <https://access.redhat.com/errata/RHSA-2026:42078> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:42079> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:36193> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:36315> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:42144> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:50479> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:34374> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:42132> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:54760> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:33313> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:34891> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:56347> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:42644> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:34772> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:34778> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:34780> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:34773> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:34774> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:34739> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:34752> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:34765> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:34758> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:34756> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:34760> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:34776> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:34748> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:34775> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:34740> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:34749> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:34750> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:34741> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:34777> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:37275> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:60520> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:34456> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:37283> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-8643> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pip/PYSEC-2026-196.yaml> (web)
- <https://github.com/pypa/pip> (package)
- <https://mail.python.org/archives/list/security-announce@python.org/thread/YV63UET5D3OOJY7O4M5XCVYO2YM4NBYJ> (web)
- <https://github.com/advisories/GHSA-wf93-45jw-7689> (advisory)

## Sources

- CVE List: [CVE-2026-8643](https://www.cve.org/CVERecord?id=CVE-2026-8643), CVE Terms of Use, modified 2026-09-16
- GitHub Advisory Database: [GHSA-wf93-45jw-7689](https://github.com/advisories/GHSA-wf93-45jw-7689), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-8643](https://nvd.nist.gov/vuln/detail/CVE-2026-8643), Public domain, modified 2026-09-16
- PyPA Advisory Database: [PYSEC-2026-196](https://osv.dev/vulnerability/PYSEC-2026-196), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-8643 · Whole record: https://cve.day/CVE-2026-8643.json · Rebuilt by cve.day 2026-11-25T22:59:23.468Z
