CVE-2026-22702
published medium CVSS 3.1 · 4.5virtualenv Has TOCTOU Vulnerabilities in Directory Creation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| pypa | — | virtualenv< 20.36.1 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1428 | Fixed | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP7 | python311-virtualenvnoarch | Advisory build | 20.22.0-150400.9.9.1 | SUSE-SU-2026:0233-1 |
| Amazon Linux | AL2023 | python3.13-virtualenvnoarch | Listed in advisory | Not stated | ALAS2023-2026-1428 |
| SUSE / openSUSE | SLE-16 | python313-virtualenvnoarch | Advisory build | 20.29.3-160000.3.1 | SUSE-SU-2026:20129-1 |
| SUSE / openSUSE | SLE-3-SP7 | python311-virtualenvnoarch | Advisory build | 20.22.0-150400.9.9.1 | SUSE-SU-2026:0233-1 |
Show 15 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Leap-15.6 | python311-virtualenvnoarch | Advisory build | 20.22.0-150400.9.9.1 | SUSE-SU-2026:0233-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-virtualenvnoarch | Advisory build | 20.29.3-160000.3.1 | OPENSUSE-SU-2026:20086-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-virtualenvaarch64 | Advisory build | 20.36.1-1.1 | OPENSUSE-SU-2026:10055-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-virtualenvppc64le | Advisory build | 20.36.1-1.1 | OPENSUSE-SU-2026:10055-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-virtualenvs390x | Advisory build | 20.36.1-1.1 | OPENSUSE-SU-2026:10055-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-virtualenvx86_64 | Advisory build | 20.36.1-1.1 | OPENSUSE-SU-2026:10055-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-virtualenvaarch64 | Advisory build | 20.36.1-1.1 | OPENSUSE-SU-2026:10055-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-virtualenvppc64le | Advisory build | 20.36.1-1.1 | OPENSUSE-SU-2026:10055-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-virtualenvs390x | Advisory build | 20.36.1-1.1 | OPENSUSE-SU-2026:10055-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-virtualenvx86_64 | Advisory build | 20.36.1-1.1 | OPENSUSE-SU-2026:10055-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-virtualenvaarch64 | Advisory build | 20.36.1-1.1 | OPENSUSE-SU-2026:10055-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-virtualenvppc64le | Advisory build | 20.36.1-1.1 | OPENSUSE-SU-2026:10055-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-virtualenvs390x | Advisory build | 20.36.1-1.1 | OPENSUSE-SU-2026:10055-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-virtualenvx86_64 | Advisory build | 20.36.1-1.1 | OPENSUSE-SU-2026:10055-1 |
| Amazon Linux | AL2023 | python3.13-virtualenvsrc | Listed in advisory | Not stated | ALAS2023-2026-1428 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| pypa | virtualenv | < 20.36.1 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-59 CWE-59: Improper Link Resolution Before File Access ('Link Following')
- CWE-362 CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
References
3Provider assertions
2GitHub_M · cna
virtualenv Has TOCTOU Vulnerabilities in Directory Creation
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a5cb6ca888b2949a55e907f7974d5f995c7b9ac67fde5262890b04d53ef2ce31
- Ingested
- 23 Sep 2026, 09:05:30 UTC
- Source record
- Official CVE record