CVE-2022-26488
python: local privilege escalation via search path in Windows
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · October 5, 2024
Updated · June 30, 2026
Description
A flaw was found in Python that may allow local users to gain privileges due to the search path being inadequately secured. The installer may allow a local attacker to add user-writable directories to the system search path. To exploit, an administrator must have installed Python for all users and enabled PATH entries. A non-administrative user can trigger a repair that incorrectly adds user-writable paths into PATH, enabling search-path hijacking of other users and system services.
Statement
This vulnerability is specific to certain versions of Python on Windows systems. No Red Hat products are affected.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 7CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE-426 · Untrusted Search Path