# CVE-2026-102937: virtualenv: Command injection via --prompt in activate.bat (batch activator)

- Priority: **Routine**
- Reason: Not severe (CVSS 7.3, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-09-29 · Modified: 2026-10-02
- Aliases: GHSA-x78j-v8h9-3j2q, BIT-virtualenv-2026-102937, PYSEC-2026-4014, UBUNTU-CVE-2026-102937, DEBIAN-CVE-2026-102937, CGA-6gc3-x29v-mmrg, CGA-f8mj-29x9-vgjf, CGA-3hc8-p87w-xcqp, CGA-hw9r-f2q4-mprw, CGA-mvgj-52rf-4ph5, CGA-ph3m-892c-vwcq
- Record: https://cvemate.com/vulnerability/CVE-2026-102937 · JSON: https://cvemate.com/vulnerability/CVE-2026-102937/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.209%, percentile 11.686%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard mlflow-fips-iamguarded-compat (Chainguard): \< 3.16.1-r1
- chainguard py3-cassandra-medusa (Chainguard): \< 0.30.1-r3
- chainguard request-1276 (Chainguard): \< 0.30.1-r3
- wolfi py3-cassandra-medusa (Wolfi): \< 0.30.1-r3
- debian python-virtualenv (Debian): All versions (No fix recorded)
- ubuntu python-virtualenv (Ubuntu): All versions (No fix recorded)
- pypa virtualenv: \< 21.7.12
- PyPI virtualenv (PyPI): \< 21.7.12
- virtualenv virtualenv: \< 21.7.12

## References

- <https://github.com/pypa/virtualenv/security/advisories/GHSA-x78j-v8h9-3j2q>
- <https://github.com/pypa/virtualenv/pull/3250>
- <https://github.com/pypa/virtualenv/commit/d721ff140ce4afdc2a9b76751e4584e25d9fbea6>
- <https://github.com/pypa/virtualenv/releases/tag/21.7.12>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-102937>
- <https://github.com/pypa/advisory-database/tree/main/vulns/virtualenv/PYSEC-2026-4014.yaml>
- <https://github.com/pypa/virtualenv>
- <https://pypi.org/project/virtualenv>
- <https://ubuntu.com/security/CVE-2026-102937>
- <https://www.cve.org/CVERecord?id=CVE-2026-102937>
- <https://security-tracker.debian.org/tracker/CVE-2026-102937>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102937.json>

---

Data as of 2026-12-05T06:37:27.049Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
