{"id":"BIT-virtualenv-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":["CVE-2026-22702","GHSA-597g-3phw-6986","PYSEC-2026-2009"],"modified":"2026-09-08T08:48:21.502344491Z","published":"2026-01-13T08:53:06.703Z","database_specific":{"cpes":["cpe:2.3:a:virtualenv:virtualenv:*:*:*:*:*:python:*:*"],"severity":"Medium"},"references":[{"type":"FIX","url":"https://github.com/pypa/virtualenv/commit/dec4cec5d16edaf83a00a658f32d1e032661cebc"},{"type":"FIX","url":"https://github.com/pypa/virtualenv/pull/3013"},{"type":"ADVISORY","url":"https://github.com/pypa/virtualenv/security/advisories/GHSA-597g-3phw-6986"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22702"}],"affected":[{"package":{"name":"virtualenv","ecosystem":"Bitnami","purl":"pkg:bitnami/virtualenv"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"20.36.1"}]}],"database_specific":{"source":"https://github.com/bitnami/vulndb/tree/main/data/virtualenv/BIT-virtualenv-2026-22702.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L"}]}],"schema_version":"1.9.0"}