CVE-2026-102925: pypa virtualenv OS Command Injection
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.
Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 29-09-2026PublishedVulnerability first disclosed.
- 30-09-2026Last 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- OSV · PypiEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
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
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected 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
- virtualenv< 21.7.13
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- github.com/pypa/virtualenv/security/advisories/GHSA-p58f-9548-mpm2X Refsource CONFIRMWEBREPORTAdvisory
- github.com/pypa/virtualenv/commit/4d5a105ec2a2723b8c7f4571bb68f4f71d01e3f6X Refsource MISCWEBFIXREPORT
- github.com/pypa/virtualenvPACKAGE