Skip to main content
← All vulnerabilities
CVE-2026-113732GHSA-C947-3PG5-GM8Q

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 21.14.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. First seen by cve.now
  3. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  4. Record last updated

Affected versions

  • pypa virtualenv

    fixed in 21.14.2

  • virtualenvPyPI

    fixed in 21.14.2

References 3

GitHub · pypa/virtualenv