CVE-2026-113725
published high CVSS 3.1 · 7.8virtualenv bash activate runs commands from an environment name with a backslash before $
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| pypa | — | virtualenv< 21.14.7 | 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 |
| Amazon Linux | AL2 | python-virtualenvnoarch | Listed in advisory | Not stated | ALAS2-2026-4085 |
| 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 |
Show 2 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| 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.14.7, the bash activate script escapes the environment name for only one of the two passes bash makes over PS1, so a backslash in the name undoes the escaping and a name containing \$(...) runs as commands in the user's shell each time bash draws the prompt. This issue is fixed in version 21.14.7.
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.7 (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 bash activate runs commands from an environment name with a backslash before $
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2a1d9bd317f9aa1ba959d128a27b970e95a8393afd78160e340e4d219ca5301b
- Ingested
- 21 Oct 2026, 15:58:42 UTC
- Source record
- Official CVE record