CVE-2026-22702Virtualenv
Medium 4.5
Follow: this CVE · Virtualenv · Virtualenv We alert you by email or Slack (account required).
- Priority
- 27
- CVSS 3.1
- 4.5
- EPSS
- —
- Auth required
- Yes
- Published
- Jan 10, 2026
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
What happens
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.
What to do
- Apply the vendor's security update for Virtualenv.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | virtualenv |
< 20.36.1 |
20.36.1 |
pip install "virtualenv>=20.36.1" |
| PyPI | virtualenv |
< 20.36.1 |
20.36.1 |
pip install "virtualenv>=20.36.1" |
Per OSV / GitHub Advisories (GHSA-597g-3phw-6986, PYSEC-2026-2009). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| virtualenv | virtualenv | < 20.36.1 |
Official advisories
- Security update for python-virtualenv · SUSE · openSUSE-SU-2026:20086-1 · Jan 22, 2026 Medium
- Security update for python-virtualenv · SUSE · SUSE-SU-2026:20129-1 · Jan 22, 2026 Medium
- Security update for python-virtualenv · SUSE · SUSE-SU-2026:0233-1 · Jan 22, 2026 Medium
Also: SUSE (+1)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Issue Tracking Patch
- github.com Mitigation Patch Vendor Advisory