CVE-2026-102925

virtualenv bash and fish activation scripts execute commands embedded in paths

HIGH
7.8
CVSS Score
Published: September 29, 2026 at 08:50 PM UTC
Updated: November 9, 2026 at 07:41 PM UTC
4 products affected across 3 vendorsAnsible Automation Platformansible_automation_platform_developerVirtualenv

Using virtualenv by pypa?

Get instant alerts when new vulnerabilities affect virtualenv - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

Fix versions

  • python-virtualenv 21.14.5-1.el10apRed Hat Ansible Automation Platform 2.6 for RHEL 10
  • python3.12-virtualenv 21.14.5-1.el9apRed Hat Ansible Automation Platform 2.6 for RHEL 9

Fix versions

  • python-virtualenv 21.14.5-1.el10apRed Hat Ansible Automation Platform 2.6 for RHEL 10
  • python3.12-virtualenv 21.14.5-1.el9apRed Hat Ansible Automation Platform 2.6 for RHEL 9
v < 21.7.13

Fix versions

  • Outside the affected range from 21.7.13
    Our inference from the affected range (< 21.7.13)
v < 21.7.13

Fix versions

  • Outside the affected range from 21.7.13
    Our inference from the affected range (< 21.7.13)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (4)

x_refsource_CONFIRMPatchVendor AdvisoryMitigation
Source: cverecord
https://github.com/pypa/virtualenv/security/advisories/GHSA-p58f-9548-mpm2
x_refsource_MISCIssue TrackingPatch
Source: cverecord
https://github.com/pypa/virtualenv/pull/3252
x_refsource_MISCRelease Notes
Source: cverecord
https://github.com/pypa/virtualenv/releases/tag/21.7.13

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHGitHub_M
Attack Vector
LOCAL
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-78

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card

This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE records are from the CVE Program (CVE.org).