CVE-2026-12003
python: Python: Privilege escalation due to insecure VPATH handling in Windows legacy installers
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · June 17, 2026
Updated · October 3, 2026
Description
A flaw was found in Python. On Windows systems utilizing legacy installers, a low-privilege user can exploit insecure handling of the VPATH variable. This allows the user to create a specific landmark file outside the Python installation directory. Consequently, an alternative Lib folder can be introduced, leading to privilege escalation.
Statement
This Important privilege escalation flaw in Python's VPATH handling affects Windows systems utilizing legacy installers. Red Hat Enterprise Linux environments are not impacted as the vulnerable code path and cannot be exploited by an adversary.
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 · 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE-426 · Untrusted Search Path