CVE-2026-115586 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)
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- UbuntuDebianRed Hat
Description
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.
Upgrade path
29 packages: 1 fixed, 27 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/ansible-automation-platform-26/controller-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-27/controller-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/devspaces/udi-rhel9(Red Hat openshift_devspaces 3) | All versions | No fix listed | No fix yet |
| redhat/openshift-lightspeed/lightspeed-service-api-rhel9(Red Hat openshift_lightspeed 1) | All versions | No fix listed | No fix yet |
| redhat/openshift-lightspeed/lightspeed-service-api-rhel9(Red Hat openshift_lightspeed 2) | All versions | No fix listed | No fix yet |
| redhat/python-virtualenv(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/python3.11-virtualenv(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/python3.12-virtualenv(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/rhai-early-access/docling-serve-cuda-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-feature-server-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-kserve-storage-initializer-rhel9:1793691340(Red Hat openshift_ai 3.5 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-ta-lmes-job-rhel9:1793397682(Red Hat openshift_ai 2.25 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-ta-lmes-job-rhel9:1793398367(Red Hat openshift_ai 3.5 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-trustyai-nemo-guardrails-server-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/satellite/iop-advisor-backend-rhel9:1793757716(Red Hat satellite 6.18 el9) | All versions | No fix listed | No fix yet |
| redhat/satellite/iop-advisor-backend-rhel9:1793758586(Red Hat satellite 6.19 el9) | All versions | No fix listed | No fix yet |
| redhat/satellite/iop-host-inventory-rhel9:1793772638(Red Hat satellite 6.18 el9) | All versions | No fix listed | No fix yet |
| redhat/satellite/iop-host-inventory-rhel9:1793853308(Red Hat satellite 6.19 el9) | All versions | No fix listed | No fix yet |
| redhat/satellite/iop-yuptoo-rhel9:1793811128(Red Hat satellite 6.19 el9) | All versions | No fix listed | No fix yet |
| redhat/satellite/iop-yuptoo-rhel9:1793811191(Red Hat satellite 6.18 el9) | All versions | No fix listed | No fix yet |
| ubuntu/python-virtualenv(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/python-virtualenv(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/python-virtualenv(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/python-virtualenv(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| pypi virtualenv(PyPI) | = 21.14.9; = 21.14.10; = 21.14.11; = 21.14.12 +1 more | 21.14.13 | Fixed |
| pypa virtualenv | = >= 21.14.9, < 21.14.13 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi virtualenv(PyPI) | >= 21.14.9, < 21.14.13 | 21.14.13 |
| pypi virtualenv(PyPI) | = 21.14.10 | No fix listed |
| pypi virtualenv(PyPI) | = 21.14.11 | No fix listed |
| pypi virtualenv(PyPI) | = 21.14.12 | No fix listed |
| pypi virtualenv(PyPI) | = 21.14.9 | No fix listed |
| pypa virtualenv | = >= 21.14.9, < 21.14.13 | No fix listed |
| ubuntu/python-virtualenv(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/python-virtualenv(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/python-virtualenv(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/python-virtualenv(Ubuntu:26.10) | All versions | No fix listed |
| redhat/rhoai/odh-ta-lmes-job-rhel9:1793397682(Red Hat:openshift_ai:2.25::el9) | All versions | No fix listed |
| redhat/rhoai/odh-kserve-storage-initializer-rhel9:1793691340(Red Hat:openshift_ai:3.5::el9) | All versions | No fix listed |
| redhat/rhoai/odh-ta-lmes-job-rhel9:1793398367(Red Hat:openshift_ai:3.5::el9) | All versions | No fix listed |
| redhat/satellite/iop-host-inventory-rhel9:1793772638(Red Hat:satellite:6.18::el9) | All versions | No fix listed |
| redhat/satellite/iop-yuptoo-rhel9:1793811191(Red Hat:satellite:6.18::el9) | All versions | No fix listed |
| redhat/satellite/iop-advisor-backend-rhel9:1793757716(Red Hat:satellite:6.18::el9) | All versions | No fix listed |
| redhat/satellite/iop-yuptoo-rhel9:1793811128(Red Hat:satellite:6.19::el9) | All versions | No fix listed |
| redhat/satellite/iop-host-inventory-rhel9:1793853308(Red Hat:satellite:6.19::el9) | All versions | No fix listed |
| redhat/satellite/iop-advisor-backend-rhel9:1793758586(Red Hat:satellite:6.19::el9) | All versions | No fix listed |
| redhat/openshift-lightspeed/lightspeed-service-api-rhel9(Red Hat:openshift_lightspeed:1) | All versions | No fix listed |
| redhat/openshift-lightspeed/lightspeed-service-api-rhel9(Red Hat:openshift_lightspeed:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-26/controller-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-27/controller-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/python3.11-virtualenv(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/python3.12-virtualenv(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
Show 8 more
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/python-virtualenv(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/rhai-early-access/docling-serve-cuda-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-feature-server-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-trustyai-nemo-guardrails-server-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/devspaces/udi-rhel9(Red Hat:openshift_devspaces:3) | All versions | No fix listed |
References
- https://github.com/pypa/virtualenv/security/advisories/GHSA-cx6f-vjhg-g3cc vendor-advisory
- https://github.com/pypa/virtualenv/pull/3466 patch
- https://github.com/pypa/virtualenv/commit/3598e201f6f044e389136b2347a8a919ac03c5f4 patch
- github.com product
- https://github.com/pypa/virtualenv/releases/tag/21.14.13
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2560172 issue-tracking
- www.cve.org
- nvd.nist.gov
- github.com
- Ubuntu CVE tracker vendor-advisory
- Debian Security Tracker CVE-2026-115586 vendor-advisory
- RHSA-2026:95872 patch vendor-advisory
- RHSA-2026:95674 patch vendor-advisory
- RHSA-2026:95682 patch vendor-advisory
- RHSA-2026:95719 patch vendor-advisory
- RHSA-2026:95659 patch vendor-advisory
- RHSA-2026:95662 patch vendor-advisory
- RHSA-2026:95703 patch vendor-advisory
- RHSA-2026:100634 patch vendor-advisory
- ENISA EUVD EUVD-2026-109131 third-party-advisory