VulnWatch by ve1ve2
high 7.8 EPSS 0.26%

PYSEC-2026-4386: virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.2, FishActivator inherits ViaTemplateActivator.quote(), which uses POSIX…

Source:
OSV.dev
Published:
Fetched:
Updated:
Affects:
virtualenv

https://osv.dev/vulnerability/PYSEC-2026-4386 ↗

osvpypifix-available

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. Affected: PyPI:virtualenv Fixed in: 21.14.2 References: https://github.com/pypa/virtualenv/releases/tag/21.14.2 https://github.com/pypa/virtualenv/commit/3bddeaf8d02c3ee7f576503efb082f8f494cfcab https://github.com/pypa/virtualenv/security/advisories/GHSA-c947-3pg5-gm8q

Linked vulnerabilities (2)

CVE-2026-113732 high 7.8 EPSS 0.26% (p18) NVDCVE.orgGHSAGHSA
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

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.

CWE: CWE-78, CWE-116Aliases: GHSA-c947-3pg5-gm8q, GHSA-p58f-9548-mpm2NVD: Analyzed
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

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

CWE: CWE-116, CWE-78Aliases: CVE-2026-113732, GHSA-p58f-9548-mpm2

Also reported by (2)