CVE-2026-22702
published 2026-01-10CVE-2026-22702: 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…
PriorityP423medium4.5CVSS 3.1
AVLACHPRLUINSUCLILAL
EPSS
0.10%
0.8th percentile
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.
Affected
4 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | python-virtualenv | < python-virtualenv 20.36.1+ds-1 (forky) | python-virtualenv 20.36.1+ds-1 (forky) |
| pypa | virtualenv | < 20.36.1 | 20.36.1 |
| virtualenv | virtualenv | < 20.36.1 | 20.36.1 |
| virtualenv | virtualenv | >= 0 < 20.36.1 | 20.36.1 |
CVSS provenance
nvdv3.14.5MEDIUMCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
osv4.5MEDIUM
vendor_debian4.5MEDIUM
vendor_redhat4.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
virtualenv: virtualenv: Local attacker can redirect file operations via TOCTOU race condition
vendor_redhat·2026-01-10·CVSS 4.5
CVE-2026-22702 [MEDIUM] CWE-59 virtualenv: virtualenv: Local attacker can redirect file operations via TOCTOU race condition
virtualenv: virtualenv: Local attacker can redirect file operations via TOCTOU race condition
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.
A flaw was found in virtualenv, a tool for creating isolated virtual Python environments. A local attacker can exploit a Time-of-Check-Time-of-Use (TOCTOU) race condition during directory creation operati
Debian
CVE-2026-22702: python-virtualenv - virtualenv is a tool for creating isolated virtual python environments. Prior to...
vendor_debian·2026·CVSS 4.5
CVE-2026-22702 [MEDIUM] CVE-2026-22702: python-virtualenv - virtualenv is a tool for creating isolated virtual python environments. Prior to...
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.
Scope: local
bookworm: open
bullseye: open
forky: resolved (fixed in 20.36.1+ds-1)
sid: resolved (fixed in 20.36.1+ds-1)
trixie: open
GHSA
virtualenv Has TOCTOU Vulnerabilities in Directory Creation
ghsa·2026-01-13
CVE-2026-22702 [MEDIUM] CWE-362 virtualenv Has TOCTOU Vulnerabilities in Directory Creation
virtualenv Has TOCTOU Vulnerabilities in Directory Creation
## Impact
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.
**Affected versions:** All versions up to and including 20.36.1
**Affected users:** Any user running `virtualenv` on multi-user systems where untrusted local users have filesystem access to shared temporary directories or where `VIRTUALENV_OVERRIDE_APP_DATA` points to a user-writable location.
**Attack scenarios:**
- Cache poisoning: Attacker corrupts wheels or Pytho
OSV
virtualenv Has TOCTOU Vulnerabilities in Directory Creation
osv·2026-01-13
CVE-2026-22702 [MEDIUM] virtualenv Has TOCTOU Vulnerabilities in Directory Creation
virtualenv Has TOCTOU Vulnerabilities in Directory Creation
## Impact
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.
**Affected versions:** All versions up to and including 20.36.1
**Affected users:** Any user running `virtualenv` on multi-user systems where untrusted local users have filesystem access to shared temporary directories or where `VIRTUALENV_OVERRIDE_APP_DATA` points to a user-writable location.
**Attack scenarios:**
- Cache poisoning: Attacker corrupts wheels or Pytho
OSV
CVE-2026-22702: virtualenv is a tool for creating isolated virtual python environments
osv·2026-01-10·CVSS 4.5
CVE-2026-22702 [MEDIUM] CVE-2026-22702: virtualenv is a tool for creating isolated virtual python environments
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.
No detection rules found.
No public exploits indexed.
Wiz
CVE-2026-22702 Impact, Exploitability, and Mitigation Steps | Wiz
blogs_wiz·CVSS 4.5
CVE-2026-22702 [MEDIUM] CVE-2026-22702 Impact, Exploitability, and Mitigation Steps | Wiz
## CVE-2026-22702 :
Python vulnerability analysis and mitigation
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.
Source : NVD
## 4.5
Score
Published January 10, 2026
Severity MEDIUM
CNA Score 4.5
Affected Technologies
Python
NixOS
Has Public Exploit No
Has CISA KEV Exploit No
CISA KEV Release Date N/A
CISA KEV Due Date N/A
Explo
Bugzilla
CVE-2026-22702 virtualenv: virtualenv: Local attacker can redirect file operations via TOCTOU race condition
bugzilla·2026-01-10·CVSS 4.5
CVE-2026-22702 [MEDIUM] CVE-2026-22702 virtualenv: virtualenv: Local attacker can redirect file operations via TOCTOU race condition
CVE-2026-22702 virtualenv: virtualenv: Local attacker can redirect file operations via TOCTOU race condition
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.
2026-01-10
Published