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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:virtualenv:virtualenv:*:*:*:*:*:*:*:*

History

17 Jun 2026, 10:20

Type Values Removed Values Added
Summary
  • (es) virtualenv es una herramienta para crear entornos virtuales de Python aislados. Antes de la versión 20.36.1, las vulnerabilidades TOCTOU (Time-of-Check-Time-of-Use) en virtualenv permiten a atacantes locales realizar ataques basados en enlaces simbólicos en operaciones de creación de directorios. Un atacante con acceso local puede explotar una condición de carrera entre las comprobaciones de existencia de directorios y su creación para redirigir las operaciones de los archivos app_data y de bloqueo de virtualenv a ubicaciones controladas por el atacante. Este problema ha sido parcheado en la versión 20.36.1.

18 Feb 2026, 17:43

Type Values Removed Values Added
CPE cpe:2.3:a:virtualenv:virtualenv:*:*:*:*:*:*:*:*
First Time Virtualenv virtualenv
Virtualenv
References () https://github.com/pypa/virtualenv/commit/dec4cec5d16edaf83a00a658f32d1e032661cebc - () https://github.com/pypa/virtualenv/commit/dec4cec5d16edaf83a00a658f32d1e032661cebc - Patch
References () https://github.com/pypa/virtualenv/pull/3013 - () https://github.com/pypa/virtualenv/pull/3013 - Issue Tracking, Patch
References () https://github.com/pypa/virtualenv/security/advisories/GHSA-597g-3phw-6986 - () https://github.com/pypa/virtualenv/security/advisories/GHSA-597g-3phw-6986 - Mitigation, Patch, Vendor Advisory

10 Jan 2026, 07:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-01-10 07:16

Updated : 2026-06-17 10:20


NVD link : CVE-2026-22702

Mitre link : CVE-2026-22702

CVE.ORG link : CVE-2026-22702


JSON object : View

Products Affected

virtualenv

  • virtualenv
CWE
CWE-59

Improper Link Resolution Before File Access ('Link Following')

CWE-362

Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')