Vulnerabilities

Vulnerability · 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 Oct 23, 2026 · Red Hat Red Hat Enterprise Linux

Last checked Nov 8, 2026. A connected source was read within the last 7 days.

Check if you run it

No confirmed exploitation is on record for CVE-2026-115586. EPSS is 0.27%. Act only if a listed version of Red Hat Red Hat Enterprise Linux is installed.

Gaps on this record

  • No version range is stored. A customer cannot check an installed version against this record.
  • No vendor fix or required action is stored. Compare the linked advisory before you change production.

Same product and reporting

Severity
High7.0
Known exploitation
Not in CISA/VulnCheck KEV
EPSS
0.27%
Remediation
Vendor / distro source
Affected products
package pip · pypi virtualenv

The bash activator puts the caller-supplied prompt value into PS1 unescaped whenever promptvars is off at activation time, and assumes prompt expansion can never run afterwards. promptvars and posix mode are runtime shell state, not a property of the activation moment: re-enabling prompt expansion in the same shell (shopt -s promptvars, set -o posix) or starting an interactive child bash that inherits the exported PS1 makes bash expand the stored …

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • package pipversion unspecified
  • pypi virtualenvversion unspecified

How to fix CVE-2026-115586

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

No confirmed exploitation is on record for CVE-2026-115586. EPSS is 0.27%. Act only if a listed version of Red Hat Red Hat Enterprise Linux is installed.

Which versions are affected?

Affected version ranges are not on this record. Compare the installed version with the linked vendor advisory before you change production.

What should an analyst verify?

CWE-78: OS Command Injection. EPSS 0.27%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Oct 23, 2026 · Red Hat Security Data

    Detected

    virtualenv: virtualenv: Arbitrary code execution via unescaped prompt in bash activation script

Sources

  • CVE.orgVulnerability recordCVE-2026-115586

    Official CVE identifier

    cve.org
  • FIRST EPSSExploitation probabilityCVE-2026-115586

    30-day exploitation probability 0.27%

    first.org
  • GitLab Advisory DatabasePackage advisoryCVE-2026-115586

    The bash activator puts the caller-supplied prompt value into PS1 unescaped whenever promptvars is off at activation time, and assumes prompt expansion can never run afterwards. promptvars and posix mode are runtime shell state, not a property of the activation moment: re-enabling prompt expansion in the same shell (shopt -s promptvars, set -o posix) or starting an interactive child bash that inhe

    advisories.gitlab.com
  • Red Hat Security DataVendor advisoryCVE-2026-115586

    virtualenv: virtualenv: Arbitrary code execution via unescaped prompt in bash activation script

    access.redhat.com
  • Snyk Vulnerability DatabasePackage advisorySNYK-PYTHON-VIRTUALENV-21663372

    Command Injection

    security.snyk.io

Freshness

Last verified in this catalog Nov 8, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.

  • FIRST EPSSNov 8, 2026
  • GitLab Advisory DatabaseOct 27, 2026
  • Snyk Vulnerability DatabaseOct 26, 2026
  • CVE.orgOct 24, 2026
  • Red Hat Security DataOct 24, 2026