Command Injection Affecting virtualenv package, versions [,21.14.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.24% (15th 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-21282342
  • published21 Oct 2026
  • disclosed21 Oct 2026
  • creditKevin Stubbings

Introduced: 21 Oct 2026

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

How to fix?

Upgrade virtualenv to version 21.14.2 or higher.

Overview

Affected versions of this package are vulnerable to Command Injection via FishActivator, which inherits shlex.quote for escaping shell arguments. The POSIX quoting rules applied by shlex.quote leave backslash characters literal inside single quotes, but the fish shell treats \' as an escaped quote, not a literal backslash followed by a quote. An attacker who controls a virtualenv path or --prompt value containing a backslash immediately before a single quote can cause the single-quoted literal to terminate early, allowing the remainder of the string to be interpreted and executed as arbitrary fish shell commands when the activation script is sourced.

CVSS Base Scores

version 4.0
version 3.1