{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-22702","id":"CVE-2026-22702","title":"virtualenv Has TOCTOU Vulnerabilities in Directory Creation","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 loc","descriptionLong":"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.","published":"2026-01-10T06:05:53.281Z","updated":"2026-10-28T02:31:10.359102690Z","reserved":"2026-01-08T19:23:09.857Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":4.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":4.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":4.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"github.com"},{"version":"3.1","score":4.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"OSV"},{"version":"3.1","score":4.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"GitHub"}],"rating":"medium","products":["pypa virtualenv"],"affectedProducts":[{"vendor":"pypa","product":"virtualenv","defaultStatus":null,"versions":[{"version":"< 20.36.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"virtualenv","purl":"pkg:pypi/virtualenv","ranges":["<20.36.1"],"fixed":["20.36.1"],"advisory":"GHSA-597g-3phw-6986"}],"cwes":["CWE-59","CWE-362"],"aliases":["BIT-virtualenv-2026-22702","GHSA-597g-3phw-6986","PYSEC-2026-2009"],"references":[{"url":"https://github.com/pypa/virtualenv/security/advisories/GHSA-597g-3phw-6986","tags":["x_refsource_CONFIRM","Mitigation","Patch","Vendor Advisory","advisory","web"]},{"url":"https://github.com/pypa/virtualenv/pull/3013","tags":["x_refsource_MISC","Issue Tracking","Patch","fix","web"]},{"url":"https://github.com/pypa/virtualenv/commit/dec4cec5d16edaf83a00a658f32d1e032661cebc","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22702.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22702","tags":["advisory"]},{"url":"https://github.com/pypa/virtualenv","tags":["package"]},{"url":"https://pypi.org/project/virtualenv","tags":["package"]},{"url":"https://github.com/advisories/GHSA-597g-3phw-6986","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.001,"epssPercentile":0.00888,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-22702","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22702","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-22702","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-597g-3phw-6986","ok":true,"note":"GHSA-597g-3phw-6986"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-22702","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}