CVE-2026-113725: virtualenv bash activate runs commands from an environment name with a backslash before $
Vulnerability summary
CVE-2026-113725 is a high (CVSS 7.8) vulnerability in pypa virtualenv. EPSS estimates a 0.28% chance of exploitation in the next 30 days, higher than 21.5% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Timeline
- 20-10-2026PublishedVulnerability first disclosed.
- 21-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · PypiEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.28%
Chance of exploitation in the next 30 days
Percentile
22%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.26% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundVirtualenv
Maturity: poc
Weaknesses
CWE · root cause- CWE-78Improper Neutralization of Special Elements used in an OS CommandThe product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command before it is sent to a downstream component.
- CWE-116Improper Encoding or Escaping of OutputThe product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.
Affected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard12 products
- localstackAll versions (No fix recorded) | < 4.14.0-r31
- nemo-gymAll versions (No fix recorded) | < 0.5.0_rc0_git20260729-r8
- nemo-rl-cuda-13.0All versions (No fix recorded) | < 0.7.0-r15
- nemo-rl-cuda-13.0-automodelAll versions (No fix recorded) | < 0.7.0-r15
- nemo-rl-cuda-13.0-mcoreAll versions (No fix recorded) | < 0.7.0-r15
Debian1 product
- python-virtualenvAll versions (No fix recorded) | < 21.15.6+ds-1
Pypa1 product
- virtualenv< 21.14.7
PyPI1 product
- virtualenv< 21.14.7
Ubuntu1 product
- python-virtualenvAll versions (No fix recorded)
Virtualenv1 product
- virtualenv< 21.14.7
Wolfi1 product
- py3-cassandra-medusaAll versions (No fix recorded) | < 0.31.0-r1
7 vendors · 18 products
References
9 links- github.com/pypa/virtualenv/security/advisories/GHSA-vxj4-q4g9-crj7X Refsource CONFIRMWEBAdvisoryREPORTExploitPatchVendor AdvisoryMitigationFIX
- github.com/pypa/virtualenv/commit/c3104e02474b652832a9bbaae79f6e1696296932X Refsource MISCWEBFIXPatch
- github.com/pypa/virtualenvPACKAGE