GHSA-597g-3phw-6986 · Severity: medium · Ecosystem: pip — virtualenv Has TOCTOU Vulnerabilities in Directory Creation
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.
Conclusion & alert: CVE-2026-22702 is rated Low Risk (18.6/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.01%). Mandatory action: Low composite risk—no urgent action required; patch on your normal maintenance cycle and revisit priority if CVSS or EPSS increases.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-01-10 | — | 0.01% | — |
Full EPSS history (1 record total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 4.5 | 3.1 | MEDIUM |
|
1.0 | 3.4 | [email protected] |
GHSA-597g-3phw-6986 · Severity: medium · Ecosystem: pip — virtualenv Has TOCTOU Vulnerabilities in Directory Creation
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2026-22702 not yet assigned priority: Debian including 1 source packages (python-virtualenv), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): open 3, resolved 2. | https://security-tracker.debian.org/tracker/CVE-2026-22702 |
redhat
|
medium | — | https://access.redhat.com/security/cve/CVE-2026-22702 |
suse
|
medium | — | https://www.suse.com/security/cve/CVE-2026-22702/ |
ubuntu
|
medium | CVE-2026-22702 medium priority: Ubuntu including 1 source packages (python-virtualenv), 9 status rows across 9 suites (bionic, focal, jammy, noble, plucky, questing, trusty, upstream, xenial): needs-triage 7, ignored 1, released 1. | https://ubuntu.com/security/CVE-2026-22702 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| virtualenv | virtualenv | < 20.36.1 | cpe:2.3:a:virtualenv:virtualenv:*:*:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| https://github.com/pypa/virtualenv/commit/dec4cec5d16edaf83a00a658f32d1e032661cebc | Patch |
| https://github.com/pypa/virtualenv/pull/3013 | Issue Tracking Patch |
| https://github.com/pypa/virtualenv/security/advisories/GHSA-597g-3phw-6986 | Mitigation Patch Vendor Advisory |