CVE-2026-113732
7.8 HIGHpublic exploit availablePublished 2026-10-20 · Updated 2026-10-22
AI risk analysis
- Summary
- virtualenv's FishActivator incorrectly uses POSIX shlex.quote() for fish shell quoting, allowing command injection via backslash-escaped quotes in environment paths or prompt values when users source activate.fish.
- Exploitability
- Requires local access and user interaction (sourcing the malicious activate.fish), with exploitation difficulty increased by the need to craft a valid fish shell payload containing a backslash before a quote.
- Blast radius
- Successful exploitation grants the attacker full control over the victim's shell session, enabling arbitrary code execution with the user's privileges.
- Detection
- No reliable host or network indicator is derivable from the published description.
- Prioritized remediation
- Upgrade to virtualenv version 21.14.2 or later.
Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.
NVD description
virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.2, FishActivator inherits ViaTemplateActivator.quote(), which uses POSIX shlex.quote() even though fish interprets backslashes and single quotes differently. An attacker-influenced environment path, --prompt, or VIRTUALENV_PROMPT value containing a backslash before a quote can therefore terminate the generated fish literal and execute command substitution when the user sources activate.fish. This issue is fixed in version 21.14.2.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weaknesses
CWE-78, CWE-116
Public exploit & PoC references
References
Data: NVD (public domain). Analysis: local $0 model. Defensive use only.