virtualenv activate.fish runs commands from a path or prompt with a backslash before a quote
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.2 and virtualenv 21.14.2.
virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.2, FishActivator inherits ViaTemplateActivator.quote(), which uses POSIX shlex.quote() even though fish interprets backslashes and single quotes differently. An attacker-influenced environment path, --prompt, or VIRTUALENV_PROMPT value containing a backslash before a quote can therefore terminate the generated fish literal and execute command substitution when the user sources activate.fish. This issue is fixed in version 21.14.2.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| pypa | <21.14.2 | ||
| virtualenv | virtualenv | <21.14.2 | 21.14.2 |
| pypi: virtualenv | <21.14.2 | 21.14.2 |
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