CVE-2026-102925
virtualenv bash and fish activation scripts execute commands embedded in paths
No exploitation reported by the sources we read.
- Published2026-09-29
- Fixed in21.7.13
- WeaknessCWE-78
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
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.
Timeline
dates in UTC- 2026-09-2921:17CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 21.7 | < 21.7.13 | 21.7.13 | NVD · OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- pypa virtualenvAffected
- = < 21.7.13no fix stated
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2026-09-29
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- airflow-2MinimOSall versions · no fixed version listed
- mlflow-fips-iamguarded-compatChainguardall versions · fixed in 3.16.1-r1
- py3-cassandra-medusaWolfiall versions · fixed in 0.30.1-r3
- py3-virtualenvMinimOSall versions · fixed in 21.7.13-r0and 12 other packages
- python-virtualenvUbuntu:Pro:20.04:LTSall versions · no fixed version listed
- python-virtualenvUbuntu:26.10all versions · no fixed version listed
- python-virtualenvUbuntu:26.04:LTSall versions · no fixed version listed
- python-virtualenvUbuntu:18.04:LTSall versions · no fixed version listed
72 more package ranges on OSV.dev
Vendor advisories
virtualenv: virtualenv: Arbitrary code execution via crafted paths in activation scripts
openshift-lightspeed/lightspeed-service-api-rhel9 as a component of OpenShift Lightspeed · ansible-automation-platform-25/ansible-dev-tools-rhel8 as a component of Red Hat Ansible Automation Platform 2 · ansible-automation-platform-26/ansible-dev-tools-rhel9 as a component of Red Hat Ansible Automation Platform 2 · +23 more
Red Hat Security Advisory: Red Hat OpenShift Dev Spaces 3.31.0 Release.
Red Hat Security Advisory: RHOAI 2.25.12 - Red Hat OpenShift AI
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.7 Container Release Update
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Container Release Update
Red Hat Security Advisory: RHOAI 3.5.2 - Red Hat OpenShift AI
1 more advisory
Fix
- Update Virtualenv to 21.7.13
- Vendor fix Red Hat Product Security RHSA-2026:90321 · 4 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2026:87410 · 7 productsFor Red Hat OpenShift AI 2.25.12 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this errata update: https://docs.redhat.com/en/documentation/red_hat_openshift_ai/
- Vendor fix Red Hat Product Security RHSA-2026:87124 · 2 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.7#Upgrade
- Vendor fix Red Hat Product Security RHSA-2026:87120 · 8 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.6#Upgrade
- Vendor fix Red Hat Product Security RHSA-2026:86891 · 9 productsFor Red Hat OpenShift AI 3.5.2 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this errata update: https://docs.redhat.com/en/documentation/red_hat_openshift_ai/
- Vendor fix Red Hat Product Security RHSA-2026:84734 · 27 productsFor Red Hat OpenShift AI 3.4.5 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this errata update: https://docs.redhat.com/en/documentation/red_hat_openshift_ai/
Advisories and patches
- github.comPatch
- github.comPatch
- github.comRelease Notes
- github.comPatch · Vendor Advisory · Mitigation
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-17
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVE recordread 2026-11-09
- CISA-ADPSSVC decisionnone2026-09-30
- CNACVSS 3.17.8read 2026-11-09
- CNAweakness (CWE)CWE-78read 2026-11-09
- FIRST EPSSEPSS score0.2 %2026-11-16
- OSVaffected packages—
- GitHub AdvisoriesadvisoryHIGH2026-10-01
Identifiers
- AZL-105675same flawAzure Linux · MIT
- BIT-virtualenv-2026-102925same flawBitnami · Apache-2.0
- CGA-357c-p3cf-7hf5same flawChainguard · CC-BY-NC-ND-4.0
- CGA-3mx9-g4h9-725qsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-833q-qf54-756fsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-hgp4-vjx4-6q3psame flawChainguard · CC-BY-NC-ND-4.0
- CGA-r5xg-qgrg-56vqsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-wm24-rj2x-8526same flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2026-89461same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-p58f-9548-mpm2same flawGitHub Advisory Database · CC-BY-4.0
- MINI-c68v-88m6-f83wsame flawMinimOS · LicenseRef-unstated
- MINI-q3wr-973g-xxfhsame flawMinimOS · LicenseRef-unstated
- PYSEC-2026-4013same flawPyPA Advisory Database · CC-BY-4.0
- openSUSE-SU-2026:11974-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Published
- 2026-09-29
- Last Modified
- 2026-11-09
- NVD status
- Analyzed
- GitHub Advisory
- GHSA-p58f-9548-mpm2
Frequently asked questions
What is CVE-2026-102925?
Is CVE-2026-102925 actively exploited?
What is the CVSS score for CVE-2026-102925?
Running virtualenv? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2024-23334same product
- CVE-2024-0727same product
- CVE-2026-21441same product
- CVE-2024-6345same product
- CVE-2024-12797same product
- CVE-2025-47273same productsetuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
- CVE-2024-53899same product
- CVE-2024-3651same product
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-p58f-9548-mpm2
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0