7.8

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)

Analyzed
AliasesGHSA-cx6f-vjhg-g3ccCGA-cpr8-q37x-x53wCGA-9wqm-jxh9-qfv4
Published 23-10-2026Last modified 23-10-2026

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.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (NVD)
EPSS score
0.24%
0%100%
Low · -0.03 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 23-10-2026
    PublishedVulnerability first disclosed.
  2. 23-10-2026
    Last 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

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

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Virtualenv

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

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
PyPI1 product
  • virtualenv≥ 21.14.9, < 21.14.13
Ubuntu1 product
  • python-virtualenvAll versions (No fix recorded)
Virtualenv1 product
Wolfi1 product
  • py3-cassandra-medusaAll versions (No fix recorded) | < 0.31.0-r7

6 vendors · 15 products

References

9 links