Vulnerability
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.
14 advisories report this vulnerability, across 8 ecosystems.
Advisories
-
AZL-105675
CVE-2026-102925 affecting package python-virtualenv for versions less than 20.36.1-9
- CGA-357c-p3cf-7hf5
- CGA-3mx9-g4h9-725q
- CGA-833q-qf54-756f
- CGA-hgp4-vjx4-6q3p
- CGA-r5xg-qgrg-56vq
- CGA-wm24-rj2x-8526
-
DEBIAN-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…
-
GHSA-p58f-9548-mpm2
virtualenv bash and fish activation scripts execute commands embedded in paths
-
PYSEC-2026-4013
virtualenv bash and fish activation scripts execute commands embedded in paths
-
RHSA-2026:100715
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Product Security and Bug Fix Update
-
RHSA-2026:100716
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.7 Product Security and Bug Fix Update
-
UBUNTU-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…
-
openSUSE-SU-2026:11974-1
python313-virtualenv-21.14.2-1.1 on GA media