7.8

CVE-2026-102925: pypa virtualenv OS Command Injection

CVSS: 7.8v3.1HighAwaiting analysis
AliasesGHSA-p58f-9548-mpm2BIT-virtualenv-2026-102925PYSEC-2026-4013
Published 29-09-2026Last modified 30-09-2026

Vulnerability summary

CVE-2026-102925 is a high (CVSS 7.8) OS Command Injection vulnerability in pypa virtualenv. EPSS estimates a 0.15% chance of exploitation in the next 30 days, higher than 4% of scored vulnerabilities.

Overall risk
31/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.15%
0%100%
Low · Change unavailable
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 29-09-2026
    PublishedVulnerability first disclosed.
  2. 30-09-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

7 scores · 7 sources · 1 version

EPSS trend

Probability

0.15%

Chance of exploitation in the next 30 days

Percentile

4%

Versus all other CVEs

30-day change

Change unavailable

Change unavailable

30-09-202619-10-2026
EPSS score
0.15%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Chainguard3 products
  • mlflow-fips-iamguarded-compat< 3.16.1-r1
  • py3-cassandra-medusa< 0.30.1-r3
  • request-1276< 0.30.1-r3
Debian1 product
  • python-virtualenvAll versions (No fix recorded)
Pypa1 product
PyPI1 product
  • virtualenv< 21.7.13
Ubuntu1 product
  • python-virtualenvAll versions (No fix recorded)
Wolfi1 product
  • py3-cassandra-medusa< 0.30.1-r3

6 vendors · 8 products

References

12 links
Show all 12 references