Command Injection Affecting virtualenv package, versions [,21.7.13)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.15% (4th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-VIRTUALENV-20335491
  • published30 Sept 2026
  • disclosed29 Sept 2026
  • creditBernát Gábor

Introduced: 29 Sep 2026

NewCVE-2026-102925  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade virtualenv to version 21.7.13 or higher.

Overview

Affected versions of this package are vulnerable to Command Injection via path interpolation in the generated activate.sh (bash) and activate.fish (fish) activation scripts. When a virtualenv is created with a path containing shell metacharacters, those characters are embedded unquoted into the activation script, allowing an attacker who controls the virtualenv path to inject arbitrary shell commands that execute when a user sources the activation script.

CVSS Base Scores

version 4.0
version 3.1