CVE-2026-102925 json
virtualenv bash and fish activation scripts execute commands embedded in paths
published last mo. modified 6h ago also BIT-virtualenv-2026-102925 , EUVD-2026-89461 , GHSA-p58f-9548-mpm2 , PYSEC-2026-4013
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 5%
- public exploits
- 0
- none known
Summary
virtualenv is a tool for creating isolated virtual python environments. Prior to 21.7.13, the generated activate (bash and zsh) and activate.fish scripts place values already escaped by shlex.quote inside an additional quoted context. In the bash and zsh script, a crafted virtual environment path reaches __VIRTUAL_ENV__ when a relocated environment's recorded directory is absent; in the fish script, crafted Tcl or Tk library paths reach __TCL_LIBRARY__ or __TK_LIBRARY__. The surplus quotes can terminate the data-only quoted run and leave shell metacharacters parsed as commands when a user sources the activation script, allowing code execution with that user's privileges. This issue is fixed in version 21.7.13.
Patch / fix
- pypi virtualenv 21.7.13
- bitnami virtualenv 21.7.13
- virtualenv virtualenv 21.7.13
- python-virtualenv openSUSE Tumbleweed 21.14.2-1.1
opensuse advisories openSUSE-SU-2026:11974-1
- python-virtualenv Azure Linux 3.0 20.36.1-9
azure linux advisories AZL-105675
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Is CVE-2026-102925 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 FencerVendor 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-102925 updated cvss 7.8
virtualenv: virtualenv: Arbitrary code execution via crafted paths in activation scripts
-
Red Hat OpenShift Lightspeed openshift-lightspeed/lightspeed-service-api-rhel9 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 rhel8/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-rhel9affected: workaround, no fix available
-
Red Hat Ansible Automation Platform 2.6 ansible-automation-platform-26/eda-controller-rhel9 1791945282, ansible-automation-platform-26/lightspeed-chatbot-rhel9 1791978798fixed: vendor fix RHSA-2026:87120
-
Red Hat Ansible Automation Platform 2.7 ansible-automation-platform-27/eda-controller-rhel9 1792141010fixed: vendor fix RHSA-2026:87124
-
Red Hat OpenShift AI 2.25 rhoai/odh-ta-lmes-job-rhel9 1791553527, rhoai/odh-feature-server-rhel9 1792148523fixed: 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 morefixed: vendor fix RHSA-2026:84734
-
Red Hat OpenShift AI 3.5 rhoai/odh-ta-lmes-job-rhel9 1792501995, rhoai/odh-training-rocm64-torch28-py312-rhel9 1791906128, rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9 1791825469fixed: vendor fix RHSA-2026:86891
-
Red Hat OpenShift Dev Spaces 3.31 devspaces/udi-rhel9 1792708612fixed: vendor fix RHSA-2026:90321
-
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-rhel9not affected: vulnerable code not in execute path
show 5 moreshow fewer
-
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, +23 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 morenot 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.hum1not 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, +64 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, +110 morenot affected: vulnerable code not present
-
Red Hat OpenShift Container Platform 4 python-virtualenv 20.25.1-2.el10apnot affected: vulnerable code not in execute path
-
Red Hat OpenShift Dev Spaces 3.31 devspaces/code-rhel9 1792599388, devspaces/server-rhel9 1792775639, devspaces/openvsx-rhel9 1792494821, devspaces/traefik-rhel9 1792464177, devspaces/udi-base-rhel9 1792686842, devspaces/code-sshd-rhel9 1792598059, +9 morenot 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
- no
- Technical impact
- total
- Assessed
- last mo.
Exploit prediction
0.16% chance of exploitation in the next 30 days, higher than 5% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | virtualenv | <21.7.13 |
21.7.13 |
| bitnami | virtualenv | <21.7.13 |
21.7.13 |
Affected products
- pypa virtualenv
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
-
github.com
/pypa/virtualenv/pull/3252
web, issue-tracking, patch
-
github.com
/pypa/virtualenv/commit/4d5a105ec2a2723b8c7f4571bb68f4f71d01e3f6
web, patch
-
github.com
/pypa/virtualenv/security/advisories/GHSA-p58f-9548-mpm2
web, patch, vendor-advisory, mitigation
-
github.com
/pypa/virtualenv/releases/tag/21.7.13
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2026-102925
advisory, web
-
github.com
/pypa/advisory-database/tree/main/vulns/virtualenv/PYSEC-2026-4013.yaml
web
-
github.com
/pypa/virtualenv
package
-
pypi.org
/project/virtualenv
web, package
Sources
- CVE List CVE-2026-102925
- GitHub Advisory GHSA-p58f-9548-mpm2
- NVD CVE-2026-102925
- OSV BIT-virtualenv-2026-102925
- OSV PYSEC-2026-4013
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.