CVE-2026-22702 MEDIUM

CVE-2026-22702: virtualenv Has TOCTOU Vulnerabilities in Directory Creation

Vendor Pypa
Product virtualenv
Weakness CWE-59
Published January 10, 2026
Last update January 12, 2026

CVSS base score

4.5/10
Attack vector Local
Attack complexity High
Privileges required Low
User interaction None
Confidentiality Low
Integrity Low

CVSS vector

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L

What the vulnerability does

01Description

virtualenv is a tool for creating isolated virtual python environments. Prior to version 20.36.1, TOCTOU (Time-of-Check-Time-of-Use) vulnerabilities in virtualenv allow local attackers to perform symlink-based attacks on directory creation operations. An attacker with local access can exploit a race condition between directory existence checks and creation to redirect virtualenv's app_data and lock file operations to attacker-controlled locations. This issue has been patched in version 20.36.1.

Key dates

02Disclosure timeline

January 10, 2026 CVE published
January 12, 2026 Record updated