CVE-2026-113776
High 7.8No known exploitationFix availableTitle not yet published
Record last updated
CVSS score
High on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 22% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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.
Weakness: CWE-78, CWE-94
Patching and mitigation
- Patch status
- Fix available (source: NVD (reference tagged Patch))
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| virtualenv | virtualenv | from 20.26.6 before 21.14.2 | 21.14.2 | NIST NVD |
Timeline
Patch
Fix documented by NVD (reference tagged Patch)
Vendor guidance and references
- https://github.com/pypa/virtualenv/commit/602b26623a724827ff171bf11fef4ad186d01f74 (opens in a new tab)patch
- https://github.com/pypa/virtualenv/security/advisories/GHSA-8rjx-v5ww-45pp (opens in a new tab)patch, vendor advisory, mitigation
- https://github.com/pypa/virtualenv/releases/tag/21.14.2 (opens in a new tab)release notes