CVE Tools

CVE-2026-22702

virtualenv Has TOCTOU Vulnerabilities in Directory Creation

Published: Jan 10, 2026Updated: Feb 18, 2026 Sources: CVE List NVD GHSACWE-59
4.5CVSSMEDIUM

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.

CVSS Vector Breakdown

AV:LAC:HPR:LUI:NS:UC:LI:LA:L
Exploitability
AV:LAttack Vector
Local
AC:HAttack Complexity
High
PR:LPrivileges Required
Low
UI:NUser Interaction
None
Scope
S:UScope
Unchanged
Impact
C:LConfidentiality
Low
I:LIntegrity
Low
A:LAvailability
Low

Weaknesses

Affected Products

virtualenvoss-projectOSS Librariesaka virtualenv.org
pypipackage-ecosystemOSS Libraries
pypaoss-projectOSS Librariesaka pip, pipenv, pypa/setuptools

Attack Graph

Products CVE Techniques Tactics

Click technique nodes to view MITRE ATT&CK details. Scroll to zoom, drag to pan.

Exploitability

Official Patch Available
Workaround Available

MITRE ATT&CK

3 techniques
Collection
Discovery
Privilege Escalation
View detailed technique mapping

References

and 2 more references View all →

Timeline

Published
Jan 10, 2026
Last Updated
Feb 18, 2026

Unlock Complete Vulnerability Intelligence

Get the full picture for CVE-2026-22702 and every CVE in our database. Create a free account — no credit card required.

Create Free Account
Plain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows