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.
Severity (CVSS)
| Base score | 7.8 |
|---|---|
| Severity | High |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Provided by | CNA |
Weaknesses
- CWE-78 — CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
- CWE-116 — CWE-116: Improper Encoding or Escaping of Output
Affected products
| Vendor | Product | Versions |
|---|---|---|
| pypa | virtualenv | < 21.14.7 [affected] |
References
- https://github.com/pypa/virtualenv/security/advisories/GHSA-vxj4-q4g9-crj7 (x_refsource_CONFIRM)
- https://github.com/pypa/virtualenv/commit/c3104e02474b652832a9bbaae79f6e1696296932 (x_refsource_MISC)
- https://github.com/pypa/virtualenv/releases/tag/21.14.7 (x_refsource_MISC)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 21 Oct 2026 07:04 UTC.