
CVE catalog
CVE-2026-102937
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=va
- Severity
- High · CVSS 7.8
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 0.14% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | python-virtualenv | sid | 21.5.1+ds-1 | not affected |
| Debian | python-virtualenv | forky | 21.5.1+ds-1 | not affected |
| Debian | python-virtualenv | trixie | 20.31.2+ds-1+deb13u1 | not affected |
| Debian | python-virtualenv | bookworm | 20.17.1+ds-1 | not affected |
| PyPI | virtualenv | Not reported | 21.7.12 | fixed |
| PyPI | virtualenv | Not reported | 21.7.12 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | python-virtualenv | source | sid | Not affected | unimportant | Not reported | Not reported |
| Debian | python-virtualenv | source | forky | Not affected | unimportant | Not reported | Not reported |
| Debian | python-virtualenv | source | trixie | Not affected | unimportant | Not reported | Not reported |
| Debian | python-virtualenv | source | bookworm | Not affected | unimportant | Not reported | Not reported |
| PyPI | virtualenv | PyPI | Not reported | 21.7.12 | Not reported | PYSEC-2026-4014 | Not reported |
| PyPI | virtualenv | PyPI | Not reported | 21.7.12 | Not reported | GHSA-X78J-V8H9-3J2Q | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-virtualenv]Affected
Source package: [python-virtualenv]
Details (2)
20.17.1+ds-1· all · bookwormAffected
nvd · python-virtualenv · debian · bookworm; nvd · python-virtualenv · debian · 12
20.17.1+ds-1· all · bookwormAffected
nvd · python-virtualenv · debian · bookworm; nvd · python-virtualenv · debian · 12
- [virtualenv]Affected
Source package: [python-virtualenv]
Details (2)
20.17.1+ds-1· all · bookwormAffected
nvd · python-virtualenv · debian · bookworm; nvd · python-virtualenv · debian · 12
20.17.1+ds-1· all · bookwormAffected
nvd · python-virtualenv · debian · bookworm; nvd · python-virtualenv · debian · 12
[Debian 13 (Trixie)]
- [python3-virtualenv]Affected
Source package: [python-virtualenv]
Details (2)
20.31.2+ds-1+deb13u1· all · trixieAffected
nvd · python-virtualenv · debian · 13
20.31.2+ds-1+deb13u1· all · trixieAffected
nvd · python-virtualenv · debian · 13
- [virtualenv]Affected
Source package: [python-virtualenv]
Details (2)
20.31.2+ds-1+deb13u1· all · trixieAffected
nvd · python-virtualenv · debian · 13
20.31.2+ds-1+deb13u1· all · trixieAffected
nvd · python-virtualenv · debian · 13
Observed:
References
- [https://nvd.nist.gov/vuln/detail/CVE-2026-102937]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-102937]
- [https://osv.dev/vulnerability/PYSEC-2026-4014]
- [https://security-tracker.debian.org/tracker/CVE-2026-102937]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-102937.json]
[Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]