CVE-2026-22702
virtualenv is a tool for creating isolated virtual python …
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 now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/pypa/virtualenv/commit/dec4cec5d16edaf83a00a658f32d1e032661cebc
- github.com/pypa/virtualenv/pull/3013
- github.com/pypa/virtualenv/security/advisories/GHSA-597g-3phw-6986
- nvd.nist.gov/vuln/detail/CVE-2026-22702
- github.com/advisories/GHSA-597g-3phw-6986
- nvd.nist.gov/vuln/detail/CVE-2026-22702
- cve.org/CVERecord?id=CVE-2026-22702
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.