CVE-2026-113725
7.8 HIGHpublic exploit availablePublished 2026-10-20 · Updated 2026-10-22
AI risk analysis
- Summary
- A vulnerability in virtualenv's bash activate script allows command injection via the environment name when it contains unescaped backslashes and shell command substitutions like $(...), causing arbitrary commands to execute each time the user's shell prompt is drawn.
- Exploitability
- Exploitation requires the user to activate a virtual environment with a maliciously crafted name containing shell metacharacters (e.g., \\$({cmd}) ), and then interact with the shell (e.g., open a new shell or redraw the prompt), making it limited to local, user-assisted scenarios.
- Blast radius
- Successful exploitation grants the attacker arbitrary command execution in the context of the user's shell, potentially leading to full system compromise, data theft, or lateral movement within the user's environment.
- Detection
- No reliable host or network indicator is derivable from the published description; exploitation manifests only as unexpected command execution triggered by shell prompt rendering, which lacks a distinct observable signature beyond anomalous process spawns or command-line artifacts in shell history.
- Prioritized remediation
- Upgrade to virtualenv version 21.14.7 or later, which fixes the double-pass escaping issue in the bash activate script.
command-injectionrcebashlocalshell
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.7, the bash activate script escapes the environment name for only one of the two passes bash makes over PS1, so a backslash in the name undoes the escaping and a name containing \$(...) runs as commands in the user's shell each time bash draws the prompt. This issue is fixed in version 21.14.7.
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.