ADVISORIES

Vulnerability

CVE-2026-22702

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.

20 advisories report this vulnerability, across 10 ecosystems.

Advisories

  • ALAS2023-2026-1428

    Amazon Linux 2023 - ALAS2023-2026-1428: Medium priority package update for python3.13-virtualenv

    Medium CVE-2026-22702 Amazon Linux Updated 18 February 2026
  • AZL-74210

    CVE-2026-22702 affecting package python-virtualenv 20.26.6-2

    CVE-2026-22702 Azure Linux Updated 21 April 2026
  • AZL-74237

    CVE-2026-22702 affecting package python-virtualenv for versions less than 20.36.1-1

    CVE-2026-22702 Azure Linux Updated 28 August 2026
  • CGA-2wv4-rq96-vf4q
    CVE-2026-22702 ChainguardWolfi Updated 5 November 2026
  • CGA-cc8h-fw79-4vq7
    CVE-2026-22702 Chainguard Updated 5 November 2026
  • CGA-v645-67w5-g4vh
    CVE-2026-22702 ChainguardWolfi Updated 5 November 2026
  • CGA-vwf5-jvhc-hcfm
    CVE-2026-22702 Chainguard Updated 5 November 2026
  • DEBIAN-CVE-2026-22702

    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…

    CVE-2026-22702 Debian Updated 1 October 2026
  • GHSA-597g-3phw-6986

    virtualenv Has TOCTOU Vulnerabilities in Directory Creation

    Moderate CVE-2026-22702 PyPI Updated 10 September 2026
  • OESA-2026-1185

    python-virtualenv security update

    Medium CVE-2026-22702 openEuler Updated 18 August 2026
  • OESA-2026-1186

    python-virtualenv security update

    Medium CVE-2026-22702 openEuler Updated 18 August 2026
  • OESA-2026-1187

    python-virtualenv security update

    Medium CVE-2026-22702 openEuler Updated 18 August 2026
  • OESA-2026-1188

    python-virtualenv security update

    Medium CVE-2026-22702 openEuler Updated 18 August 2026
  • PYSEC-2026-2009

    virtualenv Has TOCTOU Vulnerabilities in Directory Creation

    CVE-2026-22702 PyPI Updated 7 July 2026
  • SUSE-SU-2026:0233-1

    Security update for python-virtualenv

    CVE-2026-22702 SUSEopenSUSE Updated 23 March 2026
  • SUSE-SU-2026:20129-1

    Security update for python-virtualenv

    CVE-2026-22702 SUSE Updated 23 March 2026
  • SUSEVEX-CVE-2026-22702

    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…

    Moderate CVE-2026-22702 SUSE Updated 15 July 2026
  • UBUNTU-CVE-2026-22702

    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…

    CVE-2026-22702 Ubuntu Updated 20 May 2026
  • openSUSE-SU-2026:10055-1

    python311-virtualenv-20.36.1-1.1 on GA media

    CVE-2025-68146CVE-2026-22702 openSUSE Updated 23 March 2026
  • openSUSE-SU-2026:20086-1

    Security update for python-virtualenv

    CVE-2026-22702 openSUSE Updated 23 March 2026

References