CVE-2026-8643
JSON

4.1medium

pip can extract console_scripts and gui_scripts outside installation directory

Severity
4.1medium CVSS:4.0 by PSF
Exploit likelihood
0.32% (higher than 26% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
PSF
Also known as
GHSA-wf93-45jw-7689PYSEC-2026-196

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.

Affected

Product or packageVersionsReported by
pipfrom 24.0 before 26.1.2CVE List
automation-controllerNot specified
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 *
CVE List
python3.14-pipNot specified
Not affected: from 0:25.2-3.el10_2.5 before *, from 0:25.2-3.el9_8.5 before *
CVE List
ansible-automation-platform-25/controller-rhel8Not specified
Not affected: from 1784049109 before *
CVE List
ansible-automation-platform-26/de-minimal-rhel9Not specified
Not affected: from 1782711769 before *
CVE List
ansible-automation-platform-26/de-supported-rhel9Not specified
Not affected: from 1782713671 before *
CVE List
ansible-automation-platform-26/gateway-rhel9Not specified
Not affected: from 1782761510 before *
CVE List
ansible-automation-platform-tech-preview/metrics-service-rhel9Not specified
Not affected: from 1783969139 before *
CVE List
ansible-automation-platform-26/controller-rhel9Not specified
Not affected: from 1785753810 before *
CVE List
discovery/discovery-server-rhel9Not specified
Not affected: from 1782763840 before *, from 1786638573 before *
CVE List
python-pip-mainNot specified
Not affected: from 26.1.1-3.1.hum1 before *, from 26.1.2-1.hum1 before *
CVE List
mta/mta-rhel9-operatorNot specified
Not affected: from 1786481481 before *
CVE List

All scores

PSF4.1medium CVSS:4.0CVSS: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-SADP8.0high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
GitHub8.0medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
GitHubmedium CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
PyPA Advisory Database5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Classification

CWE-22

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

pip trataría console_scripts y gui_scripts como rutas en lugar de nombres de archivo sin sanear la ruta absoluta resuelta al directorio de instalación, lo que llevaría a que los puntos de entrada se instalaran fuera del directorio de instalación.

References

https://github.com/pypa/pip/pull/14000fix, 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/5advisory, mailing-list, third-party-advisory, web
https://access.redhat.com/security/cve/CVE-2026-8643vdb-entry, web
https://bugzilla.redhat.com/show_bug.cgi?id=2460927issue-tracking, web
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-8643.jsonweb
https://access.redhat.com/errata/RHSA-2026:42078vendor-advisory
https://access.redhat.com/errata/RHSA-2026:42079vendor-advisory
https://access.redhat.com/errata/RHSA-2026:36193vendor-advisory, web
https://access.redhat.com/errata/RHSA-2026:36315vendor-advisory, web
https://access.redhat.com/errata/RHSA-2026:42144vendor-advisory
https://access.redhat.com/errata/RHSA-2026:50479vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2026-8643 changed 2026-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-wf93-45jw-7689 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-8643 changed 2026-09-16Public domain
PyPA Advisory DatabasePYSEC-2026-196 changed 2026-07-13CC-BY-4.0