Back

HIGH

python: local privilege escalation via search path in Windows

Published Mar 7, 2022

Description

In Python before 3.10.3 on Windows, local users can gain privileges because the search path is 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. This 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.

Affected products

Remediation

Red Hat statement

This vulnerability is specific to certain versions of Python on Windows systems. No Red Hat products are affected.

Weaknesses (1)

References (7)

Change history (0)

No recorded changes yet.

Sources

CVE.org / MITRE

Status PUBLISHED
Assigner mitre
Published Mar 7, 2022
Updated Aug 3, 2024
Reserved Mar 6, 2022

CISA Vulnrichment

No data

NVD

Status Modified
Modified Jun 17, 2026

Red Hat

Severity Moderate
Public date Oct 4, 2024
Bugzilla 2316527

ENISA EUVD

Assigner mitre
Published Mar 7, 2022
Updated Aug 3, 2024

GitHub

No data