7.8High
CVE-2026-113725virtualenv bash activate runs commands from an environment name with a backslash before $
Description
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.
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
| Vendor | Product | Versions | |
|---|---|---|---|
| pypa | virtualenv | < 21.14.7 | |
| virtualenv | virtualenv | < 21.14.7 |
References and patches
- https://github.com/pypa/virtualenv/security/advisories/GHSA-vxj4-q4g9-crj7 ExploitPatchVendor AdvisoryMitigation
- https://github.com/pypa/virtualenv/commit/c3104e02474b652832a9bbaae79f6e1696296932 Patch
- https://github.com/pypa/virtualenv/releases/tag/21.14.7 Release Notes
CPE matches (NVD) (1)
cpe:2.3:a:virtualenv:virtualenv:*:*:*:*:*:*:*:*< 21.14.7