CVE-2026-113732 PUBLISHED

virtualenv activate.fish runs commands from a path or prompt with a backslash before a quote

Assigner: GitHub_M
Reserved: 20.10.2026 Published: 20.10.2026 Updated: 20.10.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS Score: 7.8

Product Status

Vendor pypa
Product virtualenv
Versions
  • Version < 21.14.2 is affected

References

Problem Types

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