OS Command Injection in py3-virtualenv - CVE-2026-115586
Published: November 9, 2026
Vulnerability details
The vulnerability allows an attacker controlling the environment prompt to execute arbitrary commands as the user who activates a virtual environment.
The vulnerability exists due to missing escaping in virtualenv's Bash activator when promptvars and POSIX mode are disabled during activation. An attacker controlling the environment prompt can supply command substitutions through --prompt that execute when the victim subsequently enables prompt expansion and Bash redraws the prompt.