virtualenv bash activate runs commands from an environment name with a backslash before $
A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 21.14.7 and virtualenv 21.14.7.
virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.7, the bash activate script escapes the environment name for only one of the two passes bash makes over PS1, so a backslash in the name undoes the escaping and a name containing \$(...) runs as commands in the user's shell each time bash draws the prompt. This issue is fixed in version 21.14.7.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| pypa | <21.14.7 | ||
| virtualenv | virtualenv | <21.14.7 | 21.14.7 |
| pypi: virtualenv | <21.14.7 | 21.14.7 |
Exploit evidence
1 public sources
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in virtualenv (PyPI), strongest first
Embed
A live severity badge for an advisory, README or ticket