CVE-2026-102937: virtualenv - Command Injection
- Cve: CVE-2026-102937
- Name: virtualenv - Command Injection
- Description: 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.
- Impact: Attackers can execute arbitrary commands with the user's privileges upon environment activation, potentially compromising the user's system.
- Remediation: Update to version 21.7.12 or later.
- Vulnerability type: command_injection
- Vulnerability impact: command_injection
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.00209
- Epss percentile: 0.10915
- Assignee: [email protected]
- Published at: 2026-09-29T21:17:18Z
- Age in days: 56
- Modified at: 2026-11-19T19:28:37Z
- Patch available: yes
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-102937
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| virtualenv:virtualenv | < 21.7.12 | no | nvd | /v1/products/virtualenv/virtualenv |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| pypa/virtualenv | commit, fix, package, pull, releases, security_advisory | yes | /v1/repositories/pypa/virtualenv |
Index
- Repositories: 609
- Repositories high signal: 396
- Packages: 1
Exploitation
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts