{"id":"CVE-2026-115586","published":"2026-10-23T19:34:46Z","modified":"2026-10-23T20:55:42Z","title":"virtualenv: Bash activator leaves the --prompt value unescaped in PS1 when promptvars is off, so prompt expansion…","vendor":"pypa","product":"virtualenv","tier":"tail","description":{"text":"virtualenv is a tool for creating isolated virtual python environments. From 21.14.9 until 21.14.13, the bash bin/activate script can copy an attacker-controlled --prompt value into PS1 without escaping dollar signs or backticks when both promptvars and POSIX mode are disabled during activation. Re-enabling promptvars, running set -o posix, or starting an interactive child bash that inherits the exported PS1 can then expand command substitution in the stored VIRTUAL_ENV_PROMPT value and execute commands as the user who activates the environment. This issue is fixed in version 21.14.13.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00271,"percentile":0.19759,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/pypa/virtualenv/security/advisories/GHSA-cx6f-vjhg-g3cc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pypa/virtualenv/pull/3466","tags":["x_refsource_MISC"]},{"url":"https://github.com/pypa/virtualenv/commit/3598e201f6f044e389136b2347a8a919ac03c5f4","tags":["x_refsource_MISC"]},{"url":"https://github.com/pypa/virtualenv/releases/tag/21.14.13","tags":["x_refsource_MISC"]}],"priority":{"score":8.9,"factors":[{"name":"EPSS percentile","points":3.95},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"pypa","affectedVersions":[{"vendor":"pypa","product":"virtualenv","versions":[">= 21.14.9, < 21.14.13"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-23T20:45:48.701499Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"virtualenv","vulnerableRanges":[">=21.14.9, <21.14.13"],"patched":["21.14.13"],"from":["GHSA-cx6f-vjhg-g3cc"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-109131","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pypa-virtualenv-cve-2026-102925","parents":[{"from":"CVE-2026-102925","to":"CVE-2026-115586","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/virtualenv/activation/bash/activate.sh"],"commits":["https://github.com/pypa/virtualenv/commit/4d5a105ec2a2723b8c7f4571bb68f4f71d01e3f6","https://github.com/pypa/virtualenv/commit/3598e201f6f044e389136b2347a8a919ac03c5f4"],"basis":"shared function","functions":["deactivate"]}]},{"from":"CVE-2026-102938","to":"CVE-2026-115586","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tox.toml"],"commits":["https://github.com/pypa/virtualenv/commit/a30f995461043acb6cacbf3a890951563ccf7140","https://github.com/pypa/virtualenv/commit/3598e201f6f044e389136b2347a8a919ac03c5f4"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2026-113723","published":"2026-10-20","fixed":"21.14.9","kev":false},{"cve":"CVE-2026-113724","published":"2026-10-20","fixed":"21.14.9","kev":false},{"cve":"CVE-2026-113713","published":"2026-10-20","fixed":"21.14.10","kev":false,"link":{"from":"CVE-2026-113713","to":"CVE-2026-115586","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:virtualenv","fromFixed":"21.14.10","toFixed":"21.14.13","daysApart":3}]}},{"cve":"CVE-2026-115586","published":"2026-10-23","fixed":"21.14.13","kev":false}],"package":"PyPI:virtualenv"}}