CVE-2026-102937
High 7.8 P4 · Monitor (12/100)virtualenv is a tool for creating isolated virtual python environments. Prior to 21.7.12, BatchActivator.quote() returns prompt text unchan…
Confirmed facts from the sources
- CVSS
- 7.8 (High) · CVSS 3.1
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Scored by nvd@nist.gov - Exploitation confirmed
- Not in the CISA KEV catalog
- Exploitation estimated (EPSS)
- 0.22 % · percentile 7.8 % (as of 29.11.2026)
Probability of exploitation in the next 30 days – an estimate by FIRST, not confirmation. - Public exploit
- No reference to a public exploit.
- Fix
- Fix available
- Monitored technologies
- No monitored technology
Description (source)
virtualenv is a tool for creating isolated virtual python environments. Prior to 21.7.12, BatchActivator.quote() returns prompt text unchanged before activate.bat inserts it into a cmd.exe set "VAR=value" statement. An attacker who influences --prompt, VIRTUALENV_PROMPT, or the corresponding configuration value can include a double quote that closes the assignment and leaves following cmd.exe operators as executable syntax. When a user activates the generated Windows environment, the injected commands run with that user's privileges. This issue is fixed in version 21.7.12.
Affected products and versions
| Vendor / product | Affected versions | Fixed in | Source |
|---|---|---|---|
| pypa virtualenv | = < 21.7.12 | — | nvd |
| virtualenv virtualenv | < 21.7.12 | — | nvd |
Versions as published. “Fixed in” only where a source names the version explicitly.
Recommended mitigation
- github.com (Patch)
- github.com (Patch)
In general: check your versions, update to a fixed version, limit exposure until then and follow the vendor guidance.
AI interpretation
No AI interpretation yet – it is created for urgent advisories of monitored technologies. The facts above apply regardless.
Why this priority?: P4 · Monitor (12/100)
- Estimated exploitation probability 0.22 % (EPSS, percentile 7.8 %) – an estimate, not confirmation (+0)
- Technical severity: CVSS 7.8 (HIGH) – on its own not a reason for top priority (+12)
- Fix available – plan the update (+0)
Priority is a general assessment from CVSS, KEV, EPSS, exploits, relevance and fix availability. Whether a specific environment is affected depends on its versions, configuration and exposure.
Original advisories and links
- Advisory https://github.com/pypa/virtualenv/security/advisories/GHSA-x78j-v8h9-3j2q · security-advisories@github.com
- Advisory https://nvd.nist.gov/vuln/detail/CVE-2026-102937 · nvd
- Patch https://github.com/pypa/virtualenv/commit/d721ff140ce4afdc2a9b76751e4584e25d9fbea6 · security-advisories@github.com
- Patch https://github.com/pypa/virtualenv/pull/3250 · security-advisories@github.com
- Reference https://github.com/pypa/virtualenv/releases/tag/21.7.12 · security-advisories@github.com