CVE-2026-22702: pypa virtualenv Link Following
Vulnerability summary
CVE-2026-22702 is a medium (CVSS 4.5) Link Following vulnerability in pypa virtualenv. EPSS estimates a 0.10% chance of exploitation in the next 30 days, higher than 0.8% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 1 · Related 2Timeline
- 10-01-2026PublishedVulnerability first disclosed.
- 12-01-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · PypiEcosystem advisory · calculated4.5MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
- OSV · UbuntuEcosystem advisory · calculated4.5MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
- OSV · DebianEcosystem advisory · calculated4.5MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
- OSV · WolfiEcosystem advisory · calculated4.5MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
- OSV · ChainguardEcosystem advisory · calculated4.5MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
- NVDNIST4.5MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
EPSS trend
Probability
0.10%
Chance of exploitation in the next 30 days
Percentile
1%
Versus all other CVEs
30-day change
0.00 pp
From 0.10% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-59Improper Link Resolution Before File Access ('Link Following')The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.
- CWE-362Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.
Affected systems
Suse3 products
- python-virtualenv&distro=SUSE Linux Enterprise Module for Python 3 15 SP7< 20.22.0-150400.9.9.1
- python-virtualenv&distro=SUSE Linux Enterprise Server 16.0< 20.29.3-160000.3.1
- python-virtualenv&distro=SUSE Linux Enterprise Server for SAP applications 16.0< 20.29.3-160000.3.1
Chainguard2 products
- py3-cassandra-medusa< 0.27.0-r2
- request-1276< 0.27.0-r4
Opensuse2 products
- python-virtualenv&distro=openSUSE Leap 15.6< 20.22.0-150400.9.9.1
- python-virtualenv&distro=openSUSE Leap 16.0< 20.29.3-160000.3.1
Debian1 product
- python-virtualenvAll versions (No fix recorded) | < 20.31.2+ds-1+deb13u1 | < 20.36.1+ds-1
Pypa1 product
- virtualenv< 20.36.1
PyPI1 product
- virtualenv< 20.36.1
Ubuntu1 product
- python-virtualenvAll versions (No fix recorded)
Virtualenv1 product
- virtualenv< 20.36.1
Wolfi1 product
- py3-cassandra-medusa< 0.27.0-r2
9 vendors · 13 products
References
15 links- github.com/pypa/virtualenv/security/advisories/GHSA-597g-3phw-6986X Refsource CONFIRMWEBREPORTAdvisoryMitigationPatchVendor Advisory
- github.com/pypa/virtualenv/commit/dec4cec5d16edaf83a00a658f32d1e032661cebcX Refsource MISCWEBFIXREPORTPatch
- github.com/pypa/virtualenvPACKAGE
- pypi.org/project/virtualenvPACKAGE