CVE-2026-22702CWE-362CWE-59

virtualenv Has TOCTOU Vulnerabilities in Directory Creation

Medium · published January 10, 2026

CVSS v3.1
4.5
EPSS
0%
Percentile
0.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
4.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
CVSS v4.0
Not supplied
EPSS
0.00100 · 0.8th percentile
Weaknesses
CWE-362 · Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'); CWE-59 · Improper Link Resolution Before File Access ('Link Following')
Published
2026-01-10T06:05Z
EPSS history
Timeline
  • 10 JAN 06:05Z
    virtualenv Has TOCTOU Vulnerabilities in Directory Creation
    cvelistv5