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

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2026-10-20T22:01:23.931Z
- Modified: 2026-11-27T06:45:49.786Z
- Also known as: GHSA-c947-3pg5-gm8q, BIT-VIRTUALENV-2026-113732, PYSEC-2026-4386
- Weaknesses: CWE-78, CWE-116
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- pypa virtualenv: < 21.14.2
- virtualenv (PyPI): before 21.14.2
- virtualenv virtualenv: before 21.14.2
- virtualenv (Bitnami): before 21.14.2

## Every score

- GitHub_M: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/pypa/virtualenv/security/advisories/GHSA-c947-3pg5-gm8q> (advisory, fix, patch, vendor-advisory, web)
- <https://github.com/pypa/virtualenv/commit/3bddeaf8d02c3ee7f576503efb082f8f494cfcab> (fix, patch, web)
- <https://github.com/pypa/virtualenv/releases/tag/21.14.2> (advisory, article, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-113732> (advisory, web)
- <https://github.com/pypa/virtualenv> (package)

## Sources

- CVE List: [CVE-2026-113732](https://www.cve.org/CVERecord?id=CVE-2026-113732), CVE Terms of Use, modified 2026-10-27
- GitHub Advisory Database: [GHSA-c947-3pg5-gm8q](https://github.com/advisories/GHSA-c947-3pg5-gm8q), CC-BY-4.0, modified 2026-11-18
- NVD: [CVE-2026-113732](https://nvd.nist.gov/vuln/detail/CVE-2026-113732), Public domain, modified 2026-11-17
- PyPA Advisory Database: [PYSEC-2026-4386](https://osv.dev/vulnerability/PYSEC-2026-4386), CC-BY-4.0, modified 2026-11-18
- Bitnami Vulnerability Database: [BIT-VIRTUALENV-2026-113732](https://osv.dev/vulnerability/BIT-VIRTUALENV-2026-113732), Apache-2.0, modified 2026-11-27

---

Page: https://cve.day/CVE-2026-113732 · Whole record: https://cve.day/CVE-2026-113732.json · Rebuilt by cve.day 2026-11-27T07:07:40.803Z
