{"cve":"CVE-2026-113776","nvd":{"published":"2026-10-20T22:19:30.557","modified":"2026-10-22T16:47:38.403","status":"Awaiting Analysis","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8},"cwes":["CWE-78","CWE-94"],"references":["https://github.com/pypa/virtualenv/commit/602b26623a724827ff171bf11fef4ad186d01f74","https://github.com/pypa/virtualenv/releases/tag/21.14.2","https://github.com/pypa/virtualenv/security/advisories/GHSA-8rjx-v5ww-45pp"],"products":[],"source":"nvd","synced_at":"2026-10-23T16:39:26.291718493+00:00"},"epss":{"cve":"CVE-2026-113776","score":0.00269,"percentile":0.18873,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-8rjx-v5ww-45pp","url":"https://osv.dev/vulnerability/GHSA-8rjx-v5ww-45pp","summary":"virtualenv activation scripts run code from a path that contains a placeholder name","modified":"2026-10-21T17:00:06.164092271Z","packages":[{"ecosystem":"PyPI","name":"virtualenv","purl":"pkg:pypi/virtualenv","ranges":[">=20.26.6 <21.14.2"],"fixed":["21.14.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}