CVSS 4.0
7.3 highCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NHigh (7.3) in pypa virtualenv. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in virtualenv 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:Nvirtualenv (PyPI): fixed in 21.7.12Explain CVE-2026-102937 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-102937?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-102937?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-102937 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| pypa virtualenv | < 21.7.12 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-x78j-v8h9-3j2q | PyPI | virtualenv | <21.7.12 | 21.7.12 |
| PYSEC-2026-4014 | PyPI | virtualenv | <21.7.12 | 21.7.12 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13, 14 | python-virtualenv | no fix listed | DEBIAN-CVE-2026-102937 |
| Ubuntu | 14.04:LTS, 16.04:LTS, 18.04:LTS and 5 more | python-virtualenv | no fix listed | UBUNTU-CVE-2026-102937 |
| Azure Linux | 3 | python-pip | no fix listed | AZL-105648 |
| Azure Linux | 3 | python-virtualenv | no fix listed | AZL-105666 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.
Red Hat rates this Important.
An IMPORTANT severity command injection flaw was found in virtualenv, a tool for creating isolated Python virtual environments that is shipped as a bundled dependency in Red Hat offerings such as Red Hat OpenShift AI, Red Hat Enterprise Linux UBI container images, Red Hat Hardened Images components, and Fedora/EPEL community projects. On Windows, virtualenv's BatchActivator did not escape the prompt value before writing it into the cmd.exe set "VAR=value" statement of a generated activate.bat script. An attacker who can influence the prompt value, via the --prompt option, the VIRTUALENV_PROMPT environment variable, or the corresponding configuration setting, can supply a double quote that terminates the assignment and injects arbitrary cmd.exe commands. When a user activates the generated virtual environment on Windows, the injected commands run with that user's privileges, resulting in arbitrary code execution. The vulnerability is limited to the Windows batch activation script because the injected syntax is cmd.exe-specific. Exploitation requires the attacker to influence the prompt text and a user to activate the crafted environment, so scenarios that template the prompt from untrusted input, such as CI jobs deriving prompts from branch names, are most exposed. Some Red Hat components that bundle virtualenv are not affected because the vulnerable code or the component itself is not present in the shipped versions. For the affected Red Hat and community offerings the impact is rated IMPORTANT, and because virtualenv reaches these products as a dependency, fixes are being pursued through the delegated product and community maintainers rather than a direct Red Hat security update. Red Hat scores this flaw 7.8 (CVSS:3.1) while the upstream CVEORG record scores it 7.3 (CVSS:4.0); the difference reflects differing assessments of attack complexity and required user interaction, and both scores place the flaw in the high severity range.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Ansible Automation Platform 2.6 | ansible-automation-platform-26/eda-controller-rhel9:1791945282 | Fixed 2026-10-21 | RHSA-2026:87120 |
| Red Hat Ansible Automation Platform 2.7 | ansible-automation-platform-27/eda-controller-rhel9:1792141010 | Fixed 2026-10-21 | RHSA-2026:87124 |
| Red Hat OpenShift AI 2.25 | rhoai/odh-feature-server-rhel9:1792148523 | Fixed 2026-10-21 | RHSA-2026:87410 |
| Red Hat OpenShift AI 3.4 | rhoai/odh-feature-server-rhel9:1791863220 | Fixed 2026-10-19 | RHSA-2026:84734 |
| Red Hat OpenShift AI 3.4 | rhoai/odh-kserve-agent-rhel9:1791468381 | Fixed 2026-10-19 | RHSA-2026:84734 |
| Red Hat OpenShift AI 3.4 | rhoai/odh-kserve-controller-rhel9:1791468368 | Fixed 2026-10-19 | RHSA-2026:84734 |
| Red Hat OpenShift AI 3.4 | rhoai/odh-kserve-router-rhel9:1791468401 | Fixed 2026-10-19 | RHSA-2026:84734 |
| Red Hat OpenShift AI 3.4 | rhoai/odh-kserve-storage-initializer-rhel9:1790958549 | Fixed 2026-10-19 | RHSA-2026:84734 |
| Red Hat OpenShift AI 3.4 | rhoai/odh-ta-lmes-job-rhel9:1791470318 | Fixed 2026-10-19 | RHSA-2026:84734 |
| Red Hat OpenShift AI 3.4 | rhoai/odh-training-rocm64-torch28-py312-rhel9:1791556461 | Fixed 2026-10-19 | RHSA-2026:84734 |
| OpenShift Lightspeed | openshift-lightspeed/lightspeed-service-api-rhel9 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/ansible-dev-tools-rhel8 | Affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-26/ansible-dev-tools-rhel9 | Affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-26/controller-rhel9 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-26/lightspeed-chatbot-rhel9 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-27/ansible-devspaces-rhel9 | Affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-27/ansible-dev-tools-rhel9 | Affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-27/controller-rhel9 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-tech-preview/ansible-devspaces-rhel9 | Affected | |
| Red Hat Ansible Automation Platform 2 | python3.11-virtualenv | Not affected | |
| 30 more in the JSON and on Red Hat's page. | |||
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-102937.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.