CVE-2022-26488
Python vulnerability analysis and mitigation

Overview

In Python before 3.10.3 on Windows, a privilege escalation vulnerability (CVE-2022-26488) was discovered where local users could gain elevated privileges due to inadequately secured search paths. This vulnerability affects Python (CPython) through 3.7.12, 3.8.x through 3.8.12, 3.9.x through 3.9.10, and 3.10.x through 3.10.2. The issue was discovered by the Lockheed Martin Red Team and reported to the Python Security Response Team (Python Security).

Technical details

The vulnerability occurs when Python is installed for all users with the 'Add Python to PATH' option selected. The installer may allow a local attacker to add user-writable directories to the system search path. The vulnerability has a CVSS score of 7.0 (HIGH) with a vector of CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H (NetApp Security).

Impact

Successful exploitation of this vulnerability could lead to disclosure of sensitive information, addition or modification of data, or Denial of Service (DoS). The vulnerability enables search-path hijacking of other users and system services, potentially allowing attackers to escalate privileges on the affected system (NetApp Security).

Mitigation and workarounds

The vulnerability can be mitigated by updating to Python versions 3.11.0b1, 3.10.3, 3.9.11 (with installers), or 3.8.13 and 3.7.13 (source code only). Alternatively, users can modify an existing installation to disable the 'Add Python to PATH' or 'Add Python to environment variables' option. Manually adding the install directory to PATH is not affected by this vulnerability (Python Security).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66423HIGH7.1
  • PythonPython
  • tryton-server
NoYesNov 30, 2025
CVE-2025-66454MEDIUM6.5
  • PythonPython
  • arcade-mcp-server
NoYesDec 02, 2025
CVE-2025-66424MEDIUM6.5
  • PythonPython
  • trytond
NoYesNov 30, 2025
CVE-2025-66422MEDIUM4.3
  • PythonPython
  • tryton-server
NoYesNov 30, 2025
CVE-2025-65858LOW3.5
  • PythonPython
  • calibreweb
NoNoDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management