Back to CVE records
Medium 4.5Published Jan 10, 2026

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

Updated under an hour ago ()

Does this affect you?

It affects pypa virtualenv and 1 other product. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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.

CVSS
4.5 MEDIUM (v3.1, CNA)CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
Weakness (CWE)
CWE-59, CWE-362
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
GitHub_M
NVD analysis
Analyzed
Record last updated
Jan 12, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
pypa virtualenv
pypa:virtualenv (from the name)
before 20.36.1
CNA record
virtualenv virtualenv
virtualenv:virtualenv
before 20.36.1
NVD

References

  • x-refsource-confirm, mitigation, patch, vendor-advisory
  • x-refsource-misc, issue-tracking, patch
  • x-refsource-misc, patch

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.