Virtualenv: Prior to 21.14.7, the bash activate script escapes the environment name for only one of the two passes
Affects virtualenvSource GCVE Database
Not known to be exploited · CVSS 7.8 High : upgrade to 21.14.7 soon.
Data as of 18 Nov 2026, 13:07 UTC
- Patch
- Available – fixed in 21.14.7
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 20 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 17 Nov 2026.
What to do
Upgrade virtualenv to 21.14.7.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
PyPIvirtualenvpkg:pypi/virtualenvOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade virtualenv to version 21.14.7 or later, where the bash activate script properly escapes the environment name in all passes over PS1. The vendor has provided an official fix available at https://github.com/pypa/virtualenv/commit/c3104e02474b652832a9bbaae79f6e1696296932 and advisory https://github.com/pypa/virtualenv/security/advisories/GHSA-vxj4-q4g9-crj7. No other mitigations are necessary once patched.
Description
Virtualenv versions prior to 21.14.7 contain a vulnerability in the bash activate script where the environment name is improperly escaped during prompt string processing. This allows specially crafted environment names containing backslashes and command substitutions to execute arbitrary commands in the user's shell each time the bash prompt is drawn. The issue is resolved in version 21.14.7.