7.8High

CVE-2026-113732virtualenv activate.fish runs commands from a path or prompt with a backslash before a quote

pypa virtualenv Published: (1 month ago)

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.

Weakness (CWE): CWE-78CWE-116

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
pypa virtualenv < 21.14.2
virtualenv virtualenv < 21.14.2

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:virtualenv:virtualenv:*:*:*:*:*:*:*:* < 21.14.2