{"id":"CVE-2026-113725","published":"2026-10-20T19:56:52Z","modified":"2026-10-21T15:52:26Z","title":"virtualenv bash activate runs commands from an environment name with a backslash before $","vendor":"pypa","product":"virtualenv","tier":"tail","description":{"text":"virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.7, the bash activate script escapes the environment name for only one of the two passes bash makes over PS1, so a backslash in the name undoes the escaping and a name containing \\$(...) runs as commands in the user's shell each time bash draws the prompt. This issue is fixed in version 21.14.7.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00244,"percentile":0.09395,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://github.com/pypa/virtualenv/security/advisories/GHSA-vxj4-q4g9-crj7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pypa/virtualenv/commit/c3104e02474b652832a9bbaae79f6e1696296932","tags":["x_refsource_MISC"]},{"url":"https://github.com/pypa/virtualenv/releases/tag/21.14.7","tags":["x_refsource_MISC"]}],"priority":{"score":7.3,"factors":[{"name":"EPSS percentile","points":1.88},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"pypa","affectedVersions":[{"vendor":"pypa","product":"virtualenv","versions":["< 21.14.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-21T14:39:53.653796Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"virtualenv","vulnerableRanges":["<21.14.7"],"patched":["21.14.7"],"from":["GHSA-vxj4-q4g9-crj7","PYSEC-2026-4384"],"provenance":"source"}],"summary":{"text":"The virtualenv tool's bash activate script, prior to version 21.14.7 of the virtualenv product from pypa, escapes the environment name for only one of the two passes bash makes over PS1, so a backslash in the name lets a name containing \\$(...) execute as commands in the user's shell whenever bash draws the prompt. Exploitation requires that a user is induced to activate an environment whose name an attacker has crafted, with no authentication needed beyond local access to the environment's creation and activation.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:12:49Z"},"euvd":{"id":"EUVD-2026-105273","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-113732","published":"2026-10-20","fixed":"21.14.2","kev":false},{"cve":"CVE-2026-113776","published":"2026-10-20","fixed":"21.14.2","kev":false},{"cve":"CVE-2026-113726","published":"2026-10-20","fixed":"21.14.4","kev":false,"link":{"from":"CVE-2026-113726","to":"CVE-2026-113725","relation":"successor","confidence":"high","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:virtualenv","fromFixed":"21.14.4","toFixed":"21.14.7","daysApart":0},{"kind":"same-code","provenance":"machine","files":["src/virtualenv/activation/bash/activate.sh"],"commits":["https://github.com/pypa/virtualenv/commit/c3104e02474b652832a9bbaae79f6e1696296932","https://github.com/pypa/virtualenv/commit/5b915367da82bd024b2a0d28d2f98007034b4aa2"],"basis":"shared file"}]}},{"cve":"CVE-2026-113725","published":"2026-10-20","fixed":"21.14.7","kev":false},{"cve":"CVE-2026-113714","published":"2026-10-20","fixed":"21.14.9","kev":false},{"cve":"CVE-2026-113715","published":"2026-10-20","fixed":"21.14.9","kev":false},{"cve":"CVE-2026-113716","published":"2026-10-20","fixed":"21.14.9","kev":false}],"package":"PyPI:virtualenv"}}