# 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)

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 21.14.13 (CNA); fix release not confirmed
- Status: published
- Published: 2026-10-23 · Modified: 2026-10-23
- Aliases: GHSA-cx6f-vjhg-g3cc, CGA-cpr8-q37x-x53w, CGA-9wqm-jxh9-qfv4, CGA-gh55-4hpp-r2v6, CGA-phgv-wq38-qq3v, CGA-rmjh-pg37-6mvf, CGA-gv44-7v84-75hw, UBUNTU-CVE-2026-115586, CGA-8638-36cm-58fv, CGA-hxqh-wf29-q8mj, CGA-qw74-c5cg-466g, CGA-x99m-c96r-9v5q, CGA-rjjp-x496-j9c3, CGA-xw99-2xfr-cxg2, BIT-virtualenv-2026-115586, CGA-rc9m-8g8x-3mf8, PYSEC-2026-4402
- Record: https://cvemate.com/vulnerability/CVE-2026-115586 · JSON: https://cvemate.com/vulnerability/CVE-2026-115586/json

## 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.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.245%, percentile 16.815%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- chainguard nemo-gym (Chainguard): All versions (No fix recorded) \| \< 0.5.0\_rc0\_git20260729-r9
- chainguard nemo-rl-cuda-13.0 (Chainguard): All versions (No fix recorded) \| \< 0.7.0-r16
- chainguard nemo-rl-cuda-13.0-automodel (Chainguard): All versions (No fix recorded) \| \< 0.7.0-r16
- chainguard nemo-rl-cuda-13.0-mcore (Chainguard): All versions (No fix recorded) \| \< 0.7.0-r16
- chainguard nemo-rl-cuda-13.0-sglang (Chainguard): All versions (No fix recorded) \| \< 0.7.0-r16
- chainguard nemo-rl-cuda-13.0-vllm (Chainguard): All versions (No fix recorded) \| \< 0.7.0-r16
- chainguard openstack-rally-2025.2 (Chainguard): All versions (No fix recorded) \| \< 4.1.0-r6
- chainguard openstack-rally-2026.1 (Chainguard): All versions (No fix recorded) \| \< 4.1.0-r6
- chainguard py3-cassandra-medusa (Chainguard): All versions (No fix recorded) \| \< 0.31.0-r7
- chainguard request-1276 (Chainguard): All versions (No fix recorded) \| \< 0.31.0-r1
- wolfi py3-cassandra-medusa (Wolfi): All versions (No fix recorded) \| \< 0.31.0-r7
- ubuntu python-virtualenv (Ubuntu): All versions (No fix recorded)
- pypa virtualenv: ≥ 21.14.9, \< 21.14.13
- PyPI virtualenv (PyPI): ≥ 21.14.9, \< 21.14.13
- virtualenv virtualenv: ≥ 21.14.9, \< 21.14.13

## References

- <https://github.com/pypa/virtualenv/security/advisories/GHSA-cx6f-vjhg-g3cc>
- <https://github.com/pypa/virtualenv/pull/3466>
- <https://github.com/pypa/virtualenv/commit/3598e201f6f044e389136b2347a8a919ac03c5f4>
- <https://github.com/pypa/virtualenv/releases/tag/21.14.13>
- <https://github.com/pypa/virtualenv>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/115xxx/CVE-2026-115586.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-115586>
- <https://ubuntu.com/security/CVE-2026-115586>
- <https://www.cve.org/CVERecord?id=CVE-2026-115586>

---

Data as of 2026-12-05T04:00:13.610Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
