7.8

CVE-2026-113722

Exploit

virtualenv: Generated POSIX console launchers interpret destination paths as shell syntax

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.
Daten sind bereitgestellt durch National Vulnerability Database (NVD)
Virtualenv ≫ Virtualenv Version >= 20.0.0 < 21.14.9
Zu dieser CVE wurde keine Warnung gefunden.
EPSS Metriken
Typ Quelle Score Percentile
EPSS FIRST.org 0.17% 0.057
CVSS Metriken
Quelle Base Score Exploit Score Impact Score Vector String
security-advisories@github.com 7.8 1.8 5.9
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

https://github.com/pypa/virtualenv/releases/tag/21.14.9
Release Notes
https://github.com/pypa/virtualenv/security/advisories/GHSA-c978-59m8-c77v
Vendor Advisory
Exploit
Mitigation
https://github.com/pypa/virtualenv/pull/3417
Patch
Issue Tracking
https://github.com/pypa/virtualenv/commit/2519941bed33ee0d3ac99277f67913e439e476a9
Patch