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.
Do this next
Free account, 1 product
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
pypa virtualenv pypa:virtualenv (from the name) | before 20.36.1 | CNA record |
virtualenv virtualenv virtualenv:virtualenv | before 20.36.1 | NVD |
References
- https://github.com/pypa/virtualenv/security/advisories/GHSA-597g-3phw-6986x-refsource-confirm, mitigation, patch, vendor-advisory
- https://github.com/pypa/virtualenv/pull/3013x-refsource-misc, issue-tracking, patch
- https://github.com/pypa/virtualenv/commit/dec4cec5d16edaf83a00a658f32d1e032661cebcx-refsource-misc, patch
The CVE record on cve.org NVD's entry
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.