3 matches found
CVE-2026-102937 virtualenv: Command injection via --prompt in activate.bat (batch activator)
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, VIRTUALENVPROMPT, or the corresponding...
CVE-2026-102937
The virtualenv tool, used for creating isolated Python environments, is vulnerable to command injection on Windows in versions prior to 21.7.12 . The root cause is in BatchActivator.quote() , which fails to properly escape prompt text before activate.bat inserts it into a cmd.exe `set
Command injection via --prompt in activate.bat (batch activator)
BatchActivator.quote returned its input unchanged, the only activator withno escaping at all. --prompt, the VIRTUALENVPROMPT environment variable,and the config file all set the prompt, and activate.bat writes it straightinto @set "VAR=value". A prompt containing a double quote closes that...