Vulnerability
CVE-2026-113722
virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, virtualenv's ScriptMakerCustom and pip pass an incompletely quoted interpreter path to distlib ScriptMaker when generating POSIX console scripts. When the path contains a space or produces a shebang longer than 127 bytes, distlib emits a /bin/sh wrapper whose double-quoted interpreter path still expands command substitutions and backticks. An attacker who influences the environment destination can therefore execute commands with the user's privileges when the user later runs a generated launcher; environment creation and activation do not trigger the command. Existing launchers are not repaired by upgrading virtualenv alone and must be regenerated, while a later independent pip installation or upgrade can reintroduce an affected launcher because pip's vendored distlib is unchanged. The virtualenv fix is released in version 21.14.9.
24 advisories report this vulnerability, across 9 ecosystems.
Advisories
-
ALAS2023-2026-3409
Amazon Linux 2023 - ALAS2023-2026-3409: Important priority package update for python-virtualenv
-
ALAS2023-2026-3410
Amazon Linux 2023 - ALAS2023-2026-3410: Important priority package update for python3.13-virtualenv
-
AZL-110112
CVE-2026-113722 affecting package python-virtualenv for versions less than 20.36.1-10
- CGA-2qqj-xfh6-63vp
- CGA-2w6x-qq8x-j48x
- CGA-74rg-cxx8-246j
- CGA-7c52-jh56-jvpp
- CGA-827w-5jh5-fh8g
- CGA-9765-g36f-hvpv
- CGA-fg4q-vhjc-cqx2
- CGA-fqc3-r7g8-5jgh
- CGA-jgm3-68cp-59jf
- CGA-mfr4-vjp8-96r5
- CGA-pxhv-3v3p-5334
- CGA-r45f-34h2-m83r
- CGA-vghh-5vf9-9r4w
- CGA-x7p2-39r7-g9x6
- CGA-x9g4-hcv3-pq5p
-
DEBIAN-CVE-2026-113722
virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, virtualenv's ScriptMakerCustom and pip pass an incompletely quoted interpreter path to distlib ScriptMaker when generating POSIX…
-
GHSA-c978-59m8-c77v
virtualenv: Generated POSIX console launchers interpret destination paths as shell syntax
-
PYSEC-2026-4381
virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, virtualenv's ScriptMakerCustom and pip pass an incompletely quoted interpreter path to distlib ScriptMaker when generating POSIX…
-
SUSEVEX-CVE-2026-113722
virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, virtualenv's ScriptMakerCustom and pip pass an incompletely quoted interpreter path to distlib ScriptMaker when generating POSIX…
-
UBUNTU-CVE-2026-113722
virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, virtualenv's ScriptMakerCustom and pip pass an incompletely quoted interpreter path to distlib ScriptMaker when generating POSIX…
-
openSUSE-SU-2026:12372-1
python313-virtualenv-21.15.1-1.1 on GA media