CVE-2026-22702: Conda lock · virtualenv Has TOCTOU Vulnerabilities in Directory Creation
Affects conda-lockSource GCVE Database
Not known to be exploited · CVSS 4.5 Medium : upgrade to 4.0.0_2 when convenient.
Data as of 4 Dec 2026, 20:31 UTC
- Patch
- Available – fixed in 4.0.0_2, 20.36.1
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 10 Jan 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 4 Dec 2026.
What to do
Upgrade conda-lock to 4.0.0_2; virtualenv to 20.36.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewconda-lockpkg:brew/conda-lockOther threats | Affected
| Fixed in
|
PyPIvirtualenvpkg:pypi/virtualenvOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in virtualenv version 20.36.2 and later, which fixes the TOCTOU vulnerability by using atomic directory creation. Users should upgrade to version 20.36.2 or newer. If immediate upgrade is not possible, users should ensure that VIRTUALENV_OVERRIDE_APP_DATA points to a directory owned by the current user with permissions set to 0700, avoid running virtualenv in shared temporary directories writable by others, and isolate app_data directories by using separate user accounts for different projects.
Description
CVE-2026-22702 is a TOCTOU (Time-of-Check-Time-of-Use) vulnerability in virtualenv affecting all versions up to 20.36.1. It allows local attackers on multi-user systems to exploit a race condition in directory creation, enabling symlink-based attacks that can redirect app_data and lock file operations to attacker-controlled locations. This can lead to cache poisoning, information disclosure, lock bypass, and denial of service. The issue is fixed in version 20.36.2 and later by using atomic directory creation calls.
References
- github.com/pypa/virtualenv/security/advisories/GHSA-597g-3phw-6986 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-22702 (opens in a new tab)
- github.com/pypa/virtualenv/pull/3013 (opens in a new tab)
- github.com/pypa/virtualenv/commit/dec4cec5d16edaf83a00a658f32d1e032661cebc (opens in a new tab)
- github.com/pypa/virtualenv (opens in a new tab)