Patch Forecast
Yellow warning
Plan into this sprint.

CVE-2026-102925 · GHSA-p58f-9548-mpm2

virtualenv bash and fish activation scripts execute commands embedded in paths

Risk score
53/100
CVSS
7.8 v3.1
Exploit chance (30 days)
0.2%
Published
29 Sep 2026

Open in the live forecast Today's forecast

What to know

What it is
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…
Affected
virtualenv (pip) <= 21.7.12
Fix
Upgrade virtualenv to 21.7.13 or later.
Exploitation
No known exploitation

Why it is Yellow

  • CVSS 7.8 high
  • On your watchlist: PyPI

Affected packages

PackageEcosystemVulnerableFixed in
virtualenvpip<= 21.7.1221.7.13

References

Original 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.

Last activity 29 Sep 2026. Patch Forecast updates every hour.