Skip to main content
VulnerabilityPublished Updated

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

Affects virtualenvSource GCVE Database

0
Compare
Authoritative record:CVE-2026-102937· High 7.3

Not known to be exploited · CVSS 7.3 High : upgrade to 21.7.12 soon.

Data as of 27 Nov 2026, 07:42 UTC

CVSS 4.0 base score
7.3High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 4.07.3
Patch
Available – fixed in 21.7.12
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 29 Sep 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Nov 2026.

What to do

Upgrade virtualenv to 21.7.12.

Affected software

ProductAffectedFixed in
Bitnamivirtualenvpkg:bitnami/virtualenvOther threatsAffected
  • <21.7.12
Fixed in
  • 21.7.12
PyPIvirtualenvpkg:pypi/virtualenvOther threatsAffected
  • <21.7.12
Fixed in
  • 21.7.12

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade virtualenv to version 21.7.12 or later, where this command injection vulnerability is fixed. Users should avoid using affected versions and ensure that untrusted input is not passed to the --prompt option or related environment variables.

Description

virtualenv versions prior to 21.7.12 contain a command injection vulnerability in the Windows batch activation script. The issue arises because the prompt text provided via --prompt or environment variables is not properly sanitized before being inserted into a cmd.exe set statement. This allows an attacker who can influence the prompt value to inject arbitrary commands that execute with the user's privileges when the virtual environment is activated. The vulnerability is fixed in version 21.7.12.

References

Community reviews

Loading reviews…