Skip to main content
← All vulnerabilities
CVE-2026-22702GHSA-597G-3PHW-6986BIT-VIRTUALENV-2026-22702PYSEC-2026-2009

virtualenv Has TOCTOU Vulnerabilities in Directory Creation

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 20.36.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • pypa virtualenv

    fixed in 20.36.1

  • virtualenvPyPI

    fixed in 20.36.1

References 3

GitHub · pypa/virtualenv