Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade virtualenv to version 21.14.7 or higher.
Affected versions of this package are vulnerable to Command Injection via insufficient escaping of the virtual environment name in the bash activate script (src/virtualenv/activation/bash/activate.sh). Bash processes PS1 in two passes on every prompt redraw: it first decodes backslash prompt escapes (e.g. \\ becomes \, \$ becomes $), then expands the result. The activation script escaped the environment name for the expansion pass only, so a backslash in the name undoes that escaping. An attacker who controls the environment name - through the directory name, --prompt, or VIRTUALENV_PROMPT - can supply a name such as a\$(touch PWNED), causing arbitrary shell commands to execute each time bash draws the prompt after the environment is activated.