OS Command Injection in py3-virtualenv - #VU169684
Published: November 23, 2026
Vulnerability details
The vulnerability allows a local user to execute commands with the permissions of the user who sources a leftover activation script.
The vulnerability exists due to improper neutralization of shell metacharacters in stock activation scripts that the stdlib venv creator can leave behind when activation script generation is excluded or skipped for a shell. A local user can control the environment path to cause command execution if another user sources one of those scripts.