CVE-2026-113725

virtualenv bash activate runs commands from an environment name with a backslash before $

State
Published
Severity
7.8 High
Published
Oct 20, 2026
Updated
Oct 21, 2026
Reserved
Oct 20, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HGitHub_M

Weaknesses

  • CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  • CWE-116 Improper Encoding or Escaping of Output

Affected Products

ProductVersions
virtualenvpypa
  • < 21.14.7Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.