CVE-2026-22702 PUBLISHED

virtualenv Has TOCTOU Vulnerabilities in Directory Creation

Assigner: GitHub_M
Reserved: 08.01.2026 Published: 10.01.2026 Updated: 12.01.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
CVSS Score: 4.5

Product Status

Vendor pypa
Product virtualenv
Versions
  • Version < 20.36.1 is affected

References

Problem Types

  • CWE-59: Improper Link Resolution Before File Access ('Link Following') CWE
  • CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') CWE