Skip to main content
No exploitation reportedFix available

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?

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
  1. 2026-09-2921:17CVE publishedNVD

Versions per branch

NVD · OSV
Virtualenv
BranchAffectedFixed in
21.7< 21.7.1321.7.13

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 virtualenv
    Affected
    • = < 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

  • CVE-2026-102925 Red Hat Product Security57 products fixed · 26 known affected

    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

  • RHSA-2026:90321 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Red Hat OpenShift Dev Spaces 3.31.0 Release.

  • RHSA-2026:87410 Red Hat Product Security7 products fixed

    Red Hat Security Advisory: RHOAI 2.25.12 - Red Hat OpenShift AI

  • RHSA-2026:87124 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.7 Container Release Update

  • RHSA-2026:87120 Red Hat Product Security8 products fixed

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Container Release Update

  • RHSA-2026:86891 Red Hat Product Security9 products fixed

    Red Hat Security Advisory: RHOAI 3.5.2 - Red Hat OpenShift AI

1 more advisory

Full record on NVD

Fix

  1. Update Virtualenv to 21.7.13
  2. 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
  3. 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/
  4. 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
  5. 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
  6. 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/
  7. 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

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

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?

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.

Is CVE-2026-102925 actively exploited?

Active exploitation of CVE-2026-102925 has not been confirmed. Its EPSS score was 0.2% on 2026-11-16, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2026-102925?

CVE-2026-102925 has a CVSS v3 base score of 7.8 (HIGH severity), with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.

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

Sources for this record