7.8

CVE-2026-113726: virtualenv activate runs commands from the environment name in zsh with PROMPT_SUBST

Analyzed
AliasesGHSA-5vjq-rrrf-7h2qCGA-2cjh-gf28-8994CGA-cgv9-wff4-2jjw
Published 20-10-2026Last modified 27-10-2026

Vulnerability summary

CVE-2026-113726 is a high (CVSS 7.8) vulnerability in pypa virtualenv. EPSS estimates a 0.38% chance of exploitation in the next 30 days, higher than 34% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.38%
0%100%
Low · +0.03 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 3 · Related 1

Timeline

  1. 20-10-2026
    PublishedVulnerability first disclosed.
  2. 27-10-2026
    Last modifiedVulnerability information updated.

Description

virtualenv is a tool for creating isolated virtual python environments. Prior to 21.13.0, the bash activate script that zsh also sources leaves the environment name unescaped; from 21.13.0 until 21.14.4, it escapes backslashes, dollar signs, and backticks only when BASH_VERSION is set, so zsh receives the raw value. The script assigns that value to PS1. In zsh with PROMPT_SUBST, an attacker-influenced environment directory, --prompt, or VIRTUALENV_PROMPT value containing command, parameter, or arithmetic expansion syntax can therefore execute commands in the user's shell each time the prompt is drawn. A percent sign is separately interpreted as a zsh prompt escape but does not by itself execute commands. Plain zsh with PROMPT_SUBST disabled and bash are not affected by this mechanism. This issue is fixed in version 21.14.4.

CVSS metrics

6 scores · 6 sources · 1 version

EPSS trend

Probability

0.38%

Chance of exploitation in the next 30 days

Percentile

34%

Versus all other CVEs

30-day change

Increase +0.03 pp

From 0.34% 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

0 found

No public exploits indexed.

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.

Chainguard8 products
  • nemo-gymAll versions (No fix recorded) | < 0.5.0_rc0_git20260729-r8
  • nemo-rl-cuda-13.0All versions (No fix recorded) | < 0.7.0-r14
  • nemo-rl-cuda-13.0-automodelAll versions (No fix recorded) | < 0.7.0-r14
  • nemo-rl-cuda-13.0-mcoreAll versions (No fix recorded) | < 0.7.0-r14
  • nemo-rl-cuda-13.0-sglangAll versions (No fix recorded) | < 0.7.0-r14
Debian1 product
  • python-virtualenvAll versions (No fix recorded) | < 21.15.6+ds-1
Pypa1 product
PyPI1 product
  • virtualenv< 21.14.4
Ubuntu1 product
  • python-virtualenvAll versions (No fix recorded)
Virtualenv1 product

6 vendors · 13 products

References

9 links