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)
Vulnerability summary
CVE-2026-115586 is a high (CVSS 7.8) vulnerability in pypa virtualenv. EPSS estimates a 0.24% chance of exploitation in the next 30 days, higher than 16.8% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 23-10-2026PublishedVulnerability first disclosed.
- 23-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
8 scores · 6 sources · 2 versions- NVDNIST7.1HighCVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · ChainguardEcosystem advisory · calculated7.1HighCVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- OSV · UbuntuEcosystem advisory · calculated7.1HighCVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- OSV · WolfiEcosystem advisory · calculated7.1HighCVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- OSV · PypiEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.24%
Chance of exploitation in the next 30 days
Percentile
17%
Versus all other CVEs
30-day change
Decrease -0.03 pp
From 0.27% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundVirtualenv
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard10 products
- nemo-gymAll versions (No fix recorded) | < 0.5.0_rc0_git20260729-r9
- nemo-rl-cuda-13.0All versions (No fix recorded) | < 0.7.0-r16
- nemo-rl-cuda-13.0-automodelAll versions (No fix recorded) | < 0.7.0-r16
- nemo-rl-cuda-13.0-mcoreAll versions (No fix recorded) | < 0.7.0-r16
- nemo-rl-cuda-13.0-sglangAll versions (No fix recorded) | < 0.7.0-r16
Pypa1 product
- virtualenv≥ 21.14.9, < 21.14.13
PyPI1 product
- virtualenv≥ 21.14.9, < 21.14.13
Ubuntu1 product
- python-virtualenvAll versions (No fix recorded)
Virtualenv1 product
- virtualenv≥ 21.14.9, < 21.14.13
Wolfi1 product
- py3-cassandra-medusaAll versions (No fix recorded) | < 0.31.0-r7
6 vendors · 15 products
References
9 links- github.com/pypa/virtualenv/security/advisories/GHSA-cx6f-vjhg-g3ccX Refsource CONFIRMWEBAdvisoryREPORTExploitMitigationVendor AdvisoryEVIDENCE
- github.com/pypa/virtualenv/commit/3598e201f6f044e389136b2347a8a919ac03c5f4X Refsource MISCWEBFIXREPORTPatch
- github.com/pypa/virtualenvPACKAGE