CVE-2026-102937
Published:September 29, 2026
Updated:October 10, 2026
virtualenv is a tool for creating isolated virtual python environments. Prior to 21.7.12, BatchActivator.quote() returns prompt text unchanged before activate.bat inserts it into a cmd.exe set "VAR=value" statement. An attacker who influences --prompt, VIRTUALENV_PROMPT, or the corresponding configuration value can include a double quote that closes the assignment and leaves following cmd.exe operators as executable syntax. When a user activates the generated Windows environment, the injected commands run with that user's privileges. This issue is fixed in version 21.7.12.
Affected Packages
virtualenv (CONDA):
Affected version(s) >=20.0.20 <21.7.12Fix Suggestion:
Update to version 21.7.12https://github.com/pypa/virtualenv.git (GITHUB):
Affected version(s) >=20.0.0 <21.7.12Fix Suggestion:
Update to version 21.7.12virtualenv (PYTHON):
Affected version(s) >=0.8 <21.7.12Fix Suggestion:
Update to version 21.7.12virtualenv (PYTHON):
Affected version(s) >=20.0.0 <21.7.12Fix Suggestion:
Update to version 21.7.12Related Resources (9)
Do you need more information?
Contact UsCVSS v4
Base Score:
7.3
Attack Vector
LOCAL
Attack Complexity
LOW
Attack Requirements
PRESENT
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.8
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
EPSS
Base Score:
0.14