# CVE-2026-113776: virtualenv activation scripts run code from a path that contains a placeholder name

- 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.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2026-10-20T22:03:18.274Z
- Modified: 2026-11-27T06:45:51.689Z
- Also known as: GHSA-8rjx-v5ww-45pp, BIT-VIRTUALENV-2026-113776, PYSEC-2026-4387
- Weaknesses: CWE-78, CWE-94
- 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. From 20.26.6 until 21.14.2, ViaTemplateActivator.instantiate_template() replaces placeholders one key at a time across the complete activation template, so trigger names such as __VIRTUAL_NAME__, __VIRTUAL_ENV__, or __VIRTUAL_PROMPT__ inside an already substituted and quoted environment path or prompt can be replaced during a later pass. The later value's quoting can close the earlier literal and execute the remaining path when a user activates the environment through bash, fish, xonsh, or activate_this.py. The distinct csh prompt-display token __VIRTUAL_PROMPT_DISPLAY_TCSH__ can instead break the generated script without establishing command execution. The attacker must influence the destination path or --prompt, and a value without a relevant placeholder name does not trigger this mechanism. This issue is fixed in version 21.14.2.

(As written by CVE List.)

## Affected

- pypa virtualenv: >= 20.26.6, < 21.14.2
- virtualenv (PyPI): from 20.26.6 before 21.14.2
- virtualenv virtualenv: from 20.26.6 before 21.14.2
- virtualenv (Bitnami): from 20.26.6 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-8rjx-v5ww-45pp> (advisory, fix, mitigation, patch, vendor-advisory, web)
- <https://github.com/pypa/virtualenv/commit/602b26623a724827ff171bf11fef4ad186d01f74> (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-113776> (advisory, web)
- <https://github.com/pypa/virtualenv> (package)

## Sources

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

---

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