CVE-2026-113732
HIGH 7.8CVSS 3.1virtualenv activate.fish runs commands from a path or prompt with a backslash before a quote
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.
- Published
- 20 Oct 2026
- Last modified
- 18 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-116CWE-78
- Also known as
- BIT-virtualenv-2026-113732GHSA-c947-3pg5-gm8qPYSEC-2026-4386
- Sources
- NVDJSONOSV GHSA-c947-3pg5-gm8qJSONOSV PYSEC-2026-4386JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | virtualenv | virtualenvcpe:2.3:a:virtualenv:virtualenv:*:*:*:*:*:*:*:* |
< 21.14.2 | 21.14.2 |
| OSV | PyPI | virtualenv | < 21.14.2 | 21.14.2 |
References
- https://github.com/pypa/virtualenv/commit/3bddeaf8d02c3ee7f576503efb082f8f494cfcab · Patch, WEB, FIX
- https://github.com/pypa/virtualenv/releases/tag/21.14.2 · Release Notes, WEB, ADVISORY
- https://github.com/pypa/virtualenv/security/advisories/GHSA-c947-3pg5-gm8q · Patch, Vendor Advisory, WEB, FIX
- https://nvd.nist.gov/vuln/detail/CVE-2026-113732 · ADVISORY
- https://github.com/pypa/virtualenv · PACKAGE
History
- 25 Nov 2026 21:22 UTC · NVD: first stored (published 20 Oct 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 20 Oct 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 21 Oct 2026)