Skip to content
Fencer Intel
high 7.3

CVE-2026-102937 json

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

published last mo. modified last mo. also BIT-virtualenv-2026-102937 , EUVD-2026-89464 , GHSA-x78j-v8h9-3j2q , PYSEC-2026-4014

cvss
7.3
version 4.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.2%
EPSS 0.2% chance of exploitation in 30 days, percentile 10%
public exploits
0
none known

Summary

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.

Patch / fix

  • pypi virtualenv 21.7.12
  • bitnami virtualenv 21.7.12
  • virtualenv virtualenv 21.7.12

Is CVE-2026-102937 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-102937 updated cvss 7.8

virtualenv: virtualenv: Arbitrary code execution via unescaped prompt in Windows activation script

  • Red Hat Ansible Automation Platform 2 python-virtualenv 20.25.1-2.el10ap, python3.12-virtualenv 20.25.1-2.el9ap, ansible-automation-platform-25/ansible-dev-tools-rhel8, ansible-automation-platform-26/ansible-dev-tools-rhel9, ansible-automation-platform-27/ansible-dev-tools-rhel9, ansible-automation-platform-27/ansible-devspaces-rhel9, +1 more Red Hat Enterprise Linux 8 ubi8/python-36 Red Hat OpenShift AI (RHOAI) rhai-early-access/docling-serve-cuda-rhel9, rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9, rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9, rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9, rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9, rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9, +7 more Red Hat Satellite 6 satellite/iop-yuptoo-rhel9, satellite/iop-host-inventory-rhel9, satellite/iop-advisor-backend-rhel9 Red Hat Self-service automation portal 2 ansible-automation-platform/bootc-automation-portal-rhel9
    affected: no fix available
  • Red Hat Ansible Automation Platform 2.6 ansible-automation-platform-26/eda-controller-rhel9 1791945282
    fixed: vendor fix RHSA-2026:87120
  • Red Hat Ansible Automation Platform 2.7 ansible-automation-platform-27/eda-controller-rhel9 1792141010
    fixed: vendor fix RHSA-2026:87124
  • Red Hat OpenShift AI 2.25 rhoai/odh-feature-server-rhel9 1792148523
    fixed: vendor fix RHSA-2026:87410
  • Red Hat OpenShift AI 3.4 rhoai/odh-ta-lmes-job-rhel9 1791470318, rhoai/odh-kserve-agent-rhel9 1791468381, rhoai/odh-kserve-router-rhel9 1791468401, rhoai/odh-feature-server-rhel9 1791863220, rhoai/odh-kserve-controller-rhel9 1791468368, rhoai/odh-kserve-storage-initializer-rhel9 1790958549, +2 more
    fixed: vendor fix RHSA-2026:84734
  • Red Hat OpenShift AI 3.5 rhoai/odh-ta-lmes-job-rhel9 1792501995, rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9 1791825469
    fixed: vendor fix RHSA-2026:86891
  • Red Hat OpenShift Lightspeed openshift-lightspeed/lightspeed-service-api-rhel9
    not affected: vulnerable code not present
  • Red Hat Ansible Automation Platform 2 python3.11-virtualenv 20.25.1-1.el9ap, ansible-automation-platform-26/controller-rhel9, ansible-automation-platform-27/controller-rhel9, ansible-automation-platform-26/lightspeed-chatbot-rhel9
    not affected: vulnerable code not in execute path
show 5 more
  • Red Hat Ansible Automation Platform 2.6 ansible-automation-platform-26/hub-rhel9 1791947385, ansible-automation-platform-26/gateway-rhel9 1791971533, ansible-automation-platform-26/hub-web-rhel9 1791952205, ansible-automation-platform-26/receptor-rhel9 1791968536, ansible-automation-platform-26/mcp-tools-rhel9 1791941340, ansible-automation-platform-26/controller-rhel9 1791947602, +24 more Red Hat Ansible Automation Platform 2.7 ansible-automation-platform-27/hub-rhel9 1792388670, ansible-automation-platform-27/gateway-rhel9 1792429216, ansible-automation-platform-27/hub-web-rhel9 1792394496, ansible-automation-platform-27/receptor-rhel9 1792139928, ansible-automation-platform-27/mcp-tools-rhel9 1792425046, ansible-automation-platform-27/controller-rhel9 1792389457, +26 more
    not affected: vulnerable code not present
  • Red Hat Hardened Images python3-mypy 1.18.2-6.hum1, python-urllib3 2.8.0-1.hum1, python-trustme 1.2.1-3.1.hum1, python-cryptography 50.0.0-1.hum1, python-charset-normalizer 3.5.1-1.hum1
    not affected: component not present
  • Red Hat OpenShift AI 2.25 rhoai/odh-rhel9-operator 1792570619, rhoai/odh-vllm-cpu-rhel9 1792018436, rhoai/odh-dashboard-rhel9 1791853525, rhoai/odh-modelmesh-rhel9 1790881700, rhoai/odh-operator-bundle 1792571069, rhoai/odh-vllm-cuda-rhel9 1791358976, +65 more Red Hat OpenShift AI 3.4 rhoai/odh-cli-rhel9 1791509689, rhoai/rhai-cli-rhel9 1791509689, rhoai/odh-automl-rhel9 1791535789, rhoai/odh-mlflow-rhel9 1791865967, rhoai/odh-autorag-rhel9 1791557539, rhoai/odh-trainer-rhel9 1791869783, +92 more Red Hat OpenShift AI 3.5 rhoai/odh-cli-rhel9 1791945905, rhoai/rhai-cli-rhel9 1791945905, rhoai/odh-automl-rhel9 1791916705, rhoai/odh-mlflow-rhel9 1791947857, rhoai/odh-autorag-rhel9 1791903266, rhoai/odh-trainer-rhel9 1791952138, +111 more
    not affected: vulnerable code not present
  • Red Hat OpenShift Container Platform 4 python-virtualenv 20.25.1-2.el10ap
    not affected: vulnerable code not in execute path
  • Red Hat OpenShift Dev Spaces devspaces/udi-rhel9
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
total
Assessed
last mo.

Exploit prediction

0.21% chance of exploitation in the next 30 days, higher than 10% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
CNA 4.0 7.3 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
CNA 4.0 7.3 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Affected packages

ecosystem package affected fixed in
pypi virtualenv
<21.7.12
21.7.12
bitnami virtualenv
<21.7.12
21.7.12

Affected products

  • pypa virtualenv

Classification

Weakness
  • CWE-78 Improper Neutralization of Special Elements used in an OS Command

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.