CVE-2026-22702
Last modified
CVE-2026-22702 is a medium-severity vulnerability rated 4.5/10 on the CVSS scale. 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. EPSS estimates a 0.08% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Virtualenv | Virtualenv | < 20.36.1 |
References
- https://github.com/pypa/virtualenv/pull/3013Issue Tracking, Patch
- https://github.com/pypa/virtualenv/security/advisories/GHSA-597g-3phw-6986Mitigation, Patch, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-22702?
How severe is CVE-2026-22702?
How do I fix CVE-2026-22702?
Are you affected by CVE-2026-22702?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
