Skip to content
Threat Brief

← All advisories

CVE-2026-102937

High 7.3No known exploitationFix available

virtualenv: Command injection via --prompt in activate.bat (batch activator)

Record last updated

CVSS score

7.3

High on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

0.2%

Higher than 11% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

Not in the KEV catalog

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.

Weakness: CWE-78

Patching and mitigation

Patch status
Fix available (source: NVD (reference tagged Patch))
Fix documented (source date)
Mitigation
None documented
Vendor guidance
msrc.microsoft.com (opens in a new tab)

Affected products

VendorProductAffected versionsFixed inPer
Microsoftazl3 python-pip 24.2-10 on Azure Linux 3.0Not documentedNot documentedMicrosoft MSRC
Microsoftazl3 python-virtualenv 20.36.1-6 on Azure Linux 3.0Not documentedNot documentedMicrosoft MSRC
virtualenvvirtualenvall versions before 21.7.1221.7.12NIST NVD

Timeline

  1. Advisory

    Microsoft advisory published

    Source: Microsoft MSRC (opens in a new tab)

  2. Patch

    Fix documented by NVD (reference tagged Patch)

    Source: NVD (reference tagged Patch) (opens in a new tab)

Vendor guidance and references