CVE-2026-113776
HIGH 7.8CVSS 3.1virtualenv activation scripts run code from a path that contains a placeholder name
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.
- Published
- 20 Oct 2026
- Last modified
- 18 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-78CWE-94
- Also known as
- BIT-virtualenv-2026-113776GHSA-8rjx-v5ww-45ppPYSEC-2026-4387
- Sources
- NVDJSONOSV GHSA-8rjx-v5ww-45ppJSONOSV PYSEC-2026-4387JSON
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:*:*:*:*:*:*:*:* |
>= 20.26.6, < 21.14.2 | 21.14.2 |
| OSV | PyPI | virtualenv | >= 20.26.6, < 21.14.2 | 21.14.2 |
References
- https://github.com/pypa/virtualenv/commit/602b26623a724827ff171bf11fef4ad186d01f74 · 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-8rjx-v5ww-45pp · Patch, Vendor Advisory, Mitigation, WEB, FIX
- https://nvd.nist.gov/vuln/detail/CVE-2026-113776 · 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)