CVE-2026-22702

Medium

Description

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.

SeverityMedium
CVSS4.5
Exploit probability—
ProductVirtualenv
PublishedJan 10, 2026
First seenJan 10, 2026

How to fix

Update
  • virtualenv virtualenv20.36.1 or later
  • virtualenv20.36.1 or later

Affected products

ProductAffected versionsFixed in
virtualenv virtualenvv < 20.36.120.36.1
virtualenvPyPIv < 20.36.120.36.1

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.