CVE-2026-113726
published high CVSS 3.1 · 7.8virtualenv activate runs commands from the environment name in zsh with PROMPT_SUBST
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| pypa | — | virtualenv< 21.14.4 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluationALAS2-2026-4085 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3409 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3410 | Fixed | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-virtualenvaarch64 | Advisory build | 21.15.1-1.1 | OPENSUSE-SU-2026:12372-1 |
| Amazon Linux | AL2 | python-virtualenvnoarch | Listed in advisory | Not stated | ALAS2-2026-4085 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-virtualenvppc64le | Advisory build | 21.15.1-1.1 | OPENSUSE-SU-2026:12372-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-virtualenvs390x | Advisory build | 21.15.1-1.1 | OPENSUSE-SU-2026:12372-1 |
Show 10 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-virtualenvx86_64 | Advisory build | 21.15.1-1.1 | OPENSUSE-SU-2026:12372-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-virtualenvaarch64 | Advisory build | 21.15.1-1.1 | OPENSUSE-SU-2026:12372-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-virtualenvppc64le | Advisory build | 21.15.1-1.1 | OPENSUSE-SU-2026:12372-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-virtualenvs390x | Advisory build | 21.15.1-1.1 | OPENSUSE-SU-2026:12372-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-virtualenvx86_64 | Advisory build | 21.15.1-1.1 | OPENSUSE-SU-2026:12372-1 |
| Amazon Linux | AL2 | python-virtualenvsrc | Listed in advisory | Not stated | ALAS2-2026-4085 |
| Amazon Linux | AL2023 | python-virtualenvnoarch | Listed in advisory | Not stated | ALAS2023-2026-3409 |
| Amazon Linux | AL2023 | python-virtualenvsrc | Listed in advisory | Not stated | ALAS2023-2026-3409 |
| Amazon Linux | AL2023 | python3.13-virtualenvnoarch | Listed in advisory | Not stated | ALAS2023-2026-3410 |
| Amazon Linux | AL2023 | python3.13-virtualenvsrc | Listed in advisory | Not stated | ALAS2023-2026-3410 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| pypa | virtualenv | < 21.14.4 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-78 CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
- CWE-116 CWE-116: Improper Encoding or Escaping of Output
References
3Provider assertions
2GitHub_M · cna
virtualenv activate runs commands from the environment name in zsh with PROMPT_SUBST
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 35f1e277792d8e1abeaf0313948b0bf777e1e79f3260fc1d7a4e6fd6dec3bd55
- Ingested
- 27 Oct 2026, 21:42:07 UTC
- Source record
- Official CVE record