Prior to 21.14.9, virtualenv's ScriptMakerCustom and pip pass an incompletely quoted interpreter path to distlib
Affects virtualenvSource GCVE Database
Not known to be exploited · CVSS 7.8 High : upgrade to 21.14.9 soon.
Data as of 18 Nov 2026, 13:07 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 7.8 |
|---|
- Patch
- Available – fixed in 21.14.9
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.9.
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.9 or later to obtain the fix. Regenerate all existing POSIX console script launchers created by vulnerable versions to remove the vulnerability. No other mitigations are specified.
Description
Virtualenv versions prior to 21.14.9 have a vulnerability in ScriptMakerCustom and pip where an incompletely quoted interpreter path is passed to distlib ScriptMaker when generating POSIX console scripts. If the interpreter path contains spaces or results in a shebang longer than 127 bytes, distlib emits a /bin/sh wrapper that expands command substitutions and backticks, allowing an attacker who can influence the environment destination to execute arbitrary commands with the user's privileges when running the generated launcher. Upgrading virtualenv alone does not fix existing launchers; they must be regenerated. The vulnerability is fixed in version 21.14.9.
References
- github.com/pypa/virtualenv/releases/tag/21.14.9 (opens in a new tab)
- github.com/pypa/virtualenv/commit/2519941bed33ee0d3ac99277f67913e439e476a9 (opens in a new tab)
- github.com/pypa/virtualenv/pull/3417 (opens in a new tab)
- github.com/pypa/virtualenv/security/advisories/GHSA-c978-59m8-c77v (opens in a new tab)