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.
CVE-2026-102937
This high-severity CVE scores 7.3 under a secondary CVSS source (NVD's own analysis pending). EPSS exploit probability: 0.1% (2nd percentile of EPSS-scored CVEs). GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 7.3
- EG Score
- 7.3HIGHmedium confidence
- EG Risk
- 48EG Risk 48/100CISA SSVC
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity73% × 45%Exploitation0% × 40%Automatability100% × 15%CISA SSVC: Track at low or medium mission impact; Attend at high (mission-essential systems).Action: A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high. - EPSS PROB
- 0.1%
- EPSS %ILE
- 2nd
- KEV
- Not listed
CISA SSVCTrack at low or medium mission impact; Attend at high (mission-essential systems).
A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high.
Exploitation none (CISA Vulnrichment) · Automatable yes (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). Mission impact is CISA's Mission & Well-being decision point, and only you can judge it: high means the affected system is essential to your organisation's mission, or its compromise could cause irreversible harm to people. CISA's decision table
Published
September 29, 2026
Last Modified
October 2, 2026
Advisory Details (4)
Auto-updated Sep 29, 202621.7.12
Patch available: pypa/virtualenv 21.7.12
https://github.com/pypa/virtualenv/releases/tag/21.7.12commit d721ff140ce4 (pypa/virtualenv)
Patch available: pypa/virtualenv 21.7.12 (contains commit d721ff140ce4)
https://github.com/pypa/virtualenv/commit/d721ff140ce4afdc2a9b76751e4584e25d9fbea6🐛 fix(activation): escape batch quote() against injection
Patch available: pypa/virtualenv 21.7.12 (PR #3250 merged 2026-09-18)
https://github.com/pypa/virtualenv/pull/3250Command injection via --prompt in activate.bat (batch activator) · Advisory · pypa/virtualenv · GitHub
Affected: 21.7.12 by escaping the characters cmd.exe treats as live syntax inside this cons
https://github.com/pypa/virtualenv/security/advisories/GHSA-x78j-v8h9-3j2qVendor Advisories for CVE-2026-102937(2)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Affected Packages
(1 across 1 ecosystem)
PyPI(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| virtualenv | 0.8 ... 21.7.9 (281 versions) | 21.7.12 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 14× in last 7d / 14× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-10-04 03:37 UTCVendor advisory
- 2026-10-03 14:51 UTCEG score recompute
- 2026-10-03 14:51 UTCVendor advisory
- 2026-10-03 14:25 UTCEPSS rescore
- 2026-10-03 02:05 UTCEG score recompute
- 2026-10-02 13:18 UTCEG score recompute
- 2026-10-02 12:46 UTCEG score recompute
- 2026-10-01 21:20 UTCEG score recompute
- 2026-10-01 19:49 UTCEPSS rescore
- 2026-09-30 19:45 UTCEG score recompute
- 2026-09-30 15:02 UTCEPSS rescore
- 2026-09-29 21:21 UTCEG score recompute
- 2026-09-29 21:05 UTCEG score recompute
- 2026-09-29 21:03 UTCMITRE cvelistV5first tracked
Related CVEs(same product + same CWE)
Same product
6 shownPyPI:virtualenv
Frequently asked(5)
What is CVE-2026-102937?
When was CVE-2026-102937 disclosed?
Is CVE-2026-102937 actively exploited?
What is the CVSS score of CVE-2026-102937?
How do I remediate CVE-2026-102937?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-102937
Is Your Infrastructure Affected by CVE-2026-102937?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.