CVE-2026-113776: virtualenv activation scripts run code from a path that contains a placeholder name
Vulnerability summary
CVE-2026-113776 is a high (CVSS 7.8) vulnerability in pypa virtualenv. EPSS estimates a 0.29% chance of exploitation in the next 30 days, higher than 23.1% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 2Timeline
- 20-10-2026PublishedVulnerability first disclosed.
- 28-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · PypiEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.29%
Chance of exploitation in the next 30 days
Percentile
23%
Versus all other CVEs
30-day change
Increase +0.02 pp
From 0.27% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-78Improper Neutralization of Special Elements used in an OS CommandThe product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command before it is sent to a downstream component.
- CWE-94Improper Control of Generation of CodeThe product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
Affected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard8 products
- nemo-gymAll versions (No fix recorded) | < 0.5.0_rc0_git20260729-r8
- nemo-rl-cuda-13.0All versions (No fix recorded) | < 0.7.0-r14
- nemo-rl-cuda-13.0-automodelAll versions (No fix recorded) | < 0.7.0-r14
- nemo-rl-cuda-13.0-mcoreAll versions (No fix recorded) | < 0.7.0-r14
- nemo-rl-cuda-13.0-sglangAll versions (No fix recorded) | < 0.7.0-r14
Debian1 product
- python-virtualenvAll versions (No fix recorded) | < 21.15.6+ds-1
Pypa1 product
- virtualenv≥ 20.26.6, < 21.14.2
PyPI1 product
- virtualenv≥ 20.26.6, < 21.14.2
Ubuntu1 product
- python-virtualenvAll versions (No fix recorded)
Virtualenv1 product
- virtualenv≥ 20.26.6, < 21.14.2
6 vendors · 13 products
References
9 links- github.com/pypa/virtualenv/security/advisories/GHSA-8rjx-v5ww-45ppX Refsource CONFIRMWEBREPORTAdvisoryPatchVendor AdvisoryMitigationFIX
- github.com/pypa/virtualenv/commit/602b26623a724827ff171bf11fef4ad186d01f74X Refsource MISCWEBREPORTFIXPatch
- github.com/pypa/virtualenvPACKAGE