Virtualenv: From 21.14.9 until 21.14.13, the bash bin/activate script can copy an attacker-controlled --prompt value
Affects virtualenvSource GCVE Database
Not known to be exploited · CVSS 7.1 High : upgrade to 21.14.13 soon.
Data as of 25 Nov 2026, 11:18 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 4.0 | 7.1 |
|---|
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 19% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 21.14.13
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 23 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 25 Nov 2026.
What to do
Upgrade virtualenv to 21.14.13.
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.13 or later, where this issue is fixed. Until then, avoid using untrusted input for the --prompt parameter in the bin/activate script. There are no vendor advisories indicating alternative mitigations or that no action is required.
Description
Virtualenv versions from 21.14.9 up to but not including 21.14.13 contain a vulnerability in the bash bin/activate script. The script copies an attacker-controlled --prompt value into the PS1 environment variable without properly escaping dollar signs or backticks when promptvars and POSIX mode are disabled. This can lead to command execution when promptvars is re-enabled, POSIX mode is set, or an interactive child bash inherits the PS1 variable. The issue is fixed in version 21.14.13.
References
- github.com/pypa/virtualenv/releases/tag/21.14.13 (opens in a new tab)
- github.com/pypa/virtualenv/commit/3598e201f6f044e389136b2347a8a919ac03c5f4 (opens in a new tab)
- github.com/pypa/virtualenv/pull/3466 (opens in a new tab)
- github.com/pypa/virtualenv/security/advisories/GHSA-cx6f-vjhg-g3cc (opens in a new tab)