Time-of-check Time-of-use (TOCTOU) Race Condition in py3-virtualenv - CVE-2026-22702

 

Time-of-check Time-of-use (TOCTOU) Race Condition in py3-virtualenv - CVE-2026-22702

Published: January 13, 2026


Vulnerability identifier: #VU121190
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-22702
CWE-ID: CWE-367
Exploitation vector: Local access
Exploit availability: No public exploit available
Vendor: www.virtualenv.org
Affected software:
py3-virtualenv

Detailed vulnerability description

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to a race condition between directory existence checks and creation to redirect virtualenv's app_data and lock file operations to attacker-controlled locations. A local user can gain access to sensitive information, poison cache or perform a denial of service attack.


How to mitigate CVE-2026-22702

Install updates from vendor's website.

Sources