7.8

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

Analyzed
AliasesGHSA-x78j-v8h9-3j2qBIT-virtualenv-2026-102937PYSEC-2026-4014
Published 29-09-2026Last modified 02-10-2026

Vulnerability summary

CVE-2026-102937 is a high (CVSS 7.8) vulnerability in pypa virtualenv. EPSS estimates a 0.21% chance of exploitation in the next 30 days, higher than 11.6% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.3, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (NVD)
EPSS score
0.21%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 2

Timeline

  1. 29-09-2026
    PublishedVulnerability first disclosed.
  2. 02-10-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

9 scores · 7 sources · 2 versions

EPSS trend

Probability

0.21%

Chance of exploitation in the next 30 days

Percentile

12%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.21% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard3 products
  • mlflow-fips-iamguarded-compat< 3.16.1-r1
  • py3-cassandra-medusa< 0.30.1-r3
  • request-1276< 0.30.1-r3
Debian1 product
  • python-virtualenvAll versions (No fix recorded)
Pypa1 product
PyPI1 product
  • virtualenv< 21.7.12
Ubuntu1 product
  • python-virtualenvAll versions (No fix recorded)
Virtualenv1 product
Wolfi1 product
  • py3-cassandra-medusa< 0.30.1-r3

7 vendors · 9 products

References

12 links
Show all 12 references