CVE-2026-22702
virtualenv Has TOCTOU Vulnerabilities in Directory Creation
4.5
MEDIUM
CVSS 3.1
EPSS 0.02%
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.
How to fix CVE-2026-22702
To remediate CVE-2026-22702, upgrade the affected package to a fixed version below.
- —upgrade to 20.36.1 or later
- —no fix listed
- —upgrade to 20.36.1 or later
Is CVE-2026-22702 being exploited?
Low — EPSS is 0.0%, meaning exploitation activity has not been observed at scale.
Affected packages (3)
- from 0, < 20.36.1
- from 0
- from 0, < 20.36.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM4.5 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L |