{"id":"CVE-2026-22702","summary":"virtualenv Has TOCTOU Vulnerabilities in Directory Creation","details":"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.","aliases":["BIT-virtualenv-2026-22702","GHSA-597g-3phw-6986"],"modified":"2026-04-10T05:38:50.328743Z","published":"2026-01-10T06:05:53.281Z","related":["CGA-rmcm-rhqv-8vxm","SUSE-SU-2026:0233-1","SUSE-SU-2026:20129-1","openSUSE-SU-2026:10055-1","openSUSE-SU-2026:20086-1"],"database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-362","CWE-59"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22702.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22702.json"},{"type":"ADVISORY","url":"https://github.com/pypa/virtualenv/security/advisories/GHSA-597g-3phw-6986"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22702"},{"type":"FIX","url":"https://github.com/pypa/virtualenv/commit/dec4cec5d16edaf83a00a658f32d1e032661cebc"},{"type":"FIX","url":"https://github.com/pypa/virtualenv/pull/3013"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/pypa/virtualenv","events":[{"introduced":"0"},{"fixed":"d0ad11d1146e81ea74d2461be9653f1da9cf3fd1"}]}],"versions":["20.0.0b1","20.0.0b2","20.0.32","20.0.7","20.24.3","20.27.2","20.27.3","20.3.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-22702.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L"}]}