Vulnerability
CVE-2026-115586
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.
21 advisories report this vulnerability, across 7 ecosystems.
Advisories
-
ALAS2-2026-4085
Amazon Linux 2 2017.12 - ALAS2-2026-4085: important priority package update for python-virtualenv
-
ALAS2023-2026-3409
Amazon Linux 2023 - ALAS2023-2026-3409: Important priority package update for python-virtualenv
-
ALAS2023-2026-3410
Amazon Linux 2023 - ALAS2023-2026-3410: Important priority package update for python3.13-virtualenv
- CGA-743v-9hm7-cr5g
- CGA-8638-36cm-58fv
- CGA-9wqm-jxh9-qfv4
- CGA-cpr8-q37x-x53w
- CGA-gh55-4hpp-r2v6
- CGA-gv44-7v84-75hw
- CGA-hxqh-wf29-q8mj
- CGA-phgv-wq38-qq3v
- CGA-qw74-c5cg-466g
- CGA-rc9m-8g8x-3mf8
- CGA-rjjp-x496-j9c3
- CGA-rmjh-pg37-6mvf
- CGA-x99m-c96r-9v5q
- CGA-xw99-2xfr-cxg2
-
GHSA-cx6f-vjhg-g3cc
virtualenv: Bash activator leaves the --prompt value unescaped in PS1 when promptvars is off, so prompt expansion later executes it (regression in 21.14.9)
-
SUSEVEX-CVE-2026-115586
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…
-
UBUNTU-CVE-2026-115586
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…
-
openSUSE-SU-2026:12372-1
python313-virtualenv-21.15.1-1.1 on GA media