Code Injection Vulnerability in Virtualenv by PyPa
CVE-2026-102937
7.3HIGH
What is CVE-2026-102937?
A code injection vulnerability exists in Virtualenv prior to version 21.7.12, arising from improper handling of command prompts in Windows environments. Specifically, the BatchActivator.quote() function fails to sanitize input, allowing a malicious user to manipulate the --prompt or VIRTUALENV_PROMPT settings. By injecting a double quote, the attacker can close a variable assignment and execute arbitrary commands within the user's privileges upon activation. The flaw underscores the importance of using updated versions of tools to safeguard against potential exploitation.
Affected Version(s)
virtualenv < 21.7.12
