virtualenv shell command execution in bash activation prompts
pypa virtualenv
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| virtualenv PyPI |
|
|
Original 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.
From the CVE record · GitHub_M
References
- github.com/pypa/virtualenv/security/advisories/GHSA-vxj4-q4g9-crj7Vendor advisory
- github.com/pypa/virtualenv/commit/c3104e02474b652832a9bbaae79f6e1696296932Patch
- github.com/pypa/virtualenv/releases/tag/21.14.7Release notes
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/113xxx/CVE-2026-113725.json
- nvd.nist.gov/vuln/detail/CVE-2026-113725
- github.com/pypa/virtualenv