Command injection in virtualenv bash activation prompt
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Active
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 5 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-78.
Summary
virtualenv before 21.14.9 is affected. Caller-supplied prompt text can become executable shell syntax in the bash activation prompt, an OS command injection flaw (CWE-78). An attacker who can influence the prompt value passed to virtualenv can have it run once a user activates the environment and the prompt is drawn.
Written with Claude Haiku 5.5 from the sources below · 2026-11-03
Description from the CNA
virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, caller-supplied prompt text can become executable syntax in the bash activation prompt. An attacker must influence the value passed to virtualenv, and a user must subsequently activate the environment and draw the prompt. This vulnerability is fixed in 21.14.9.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| pypa | virtualenv | before 21.14.9 | 21.14.9 | Patch available | CNA |
| — | virtualenv (PyPI) | before 21.14.9 | 21.14.9 | Patch available | GHSA-6w3r-xr62-4xcp |
- virtualenv Vendorpypa Affected before 21.14.9 Fixed in 21.14.9 Patch available CNA
- virtualenv (PyPI) Vendor— Affected before 21.14.9 Fixed in 21.14.9 Patch available GHSA-6w3r-xr62-4xcp
Remediation
Upgrade virtualenv to 21.14.9, which fixes the flaw. Red Hat lists OpenShift Lightspeed as affected with no fix planned, and lists Red Hat Ansible Automation Platform 2, Red Hat OpenShift AI (RHOAI), Red Hat OpenShift Dev Spaces and Red Hat Satellite 6 as affected with no fix available.
Written with Claude Haiku 5.5 from the sources below · 2026-11-03
- Fix · CNA virtualenv (pypa) Fixed in 21.14.9
- Fix · GHSA-6w3r-xr62-4xcp virtualenv (PyPI) Fixed in 21.14.9 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| OpenShift Lightspeed | Affected | No fix planned: Will not fix |
| Red Hat Ansible Automation Platform 2 | Affected | No fix yet |
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet |
| Red Hat OpenShift Dev Spaces | Affected | No fix yet |
| Red Hat Satellite 6 | Affected | No fix yet |
Not affected: 3 products
- Red Hat Ansible Automation Platform 2
- Red Hat OpenShift AI (RHOAI)
- Red Hat OpenShift Container Platform 4
Timeline
- 2026-10-21 Threatist record created from CVE-2026-113723
- 2026-10-21 Affected versions changed · Red Hat
- 2026-10-21 CVSS score added · Red Hat
- 2026-10-22 Priority changed: MEDIUM → LOW
- 2026-10-22 Affected versions changed · Red Hat
- 2026-10-23 Alias added: GHSA-6w3r-xr62-4xcp
- 2026-10-23 Fix available: PyPI/[email protected] · GHSA-6w3r-xr62-4xcp
- 2026-10-23 CVSS score added · GHSA-6w3r-xr62-4xcp
- 2026-10-23 Weakness changed · GHSA-6w3r-xr62-4xcp
- 2026-10-23 6 new references · GHSA-6w3r-xr62-4xcp
- 2026-10-27 CISA SSVC decision points changed
- 2026-10-27 Priority changed: LOW → HIGH
- 2026-11-02 Affected versions changed · Red Hat
- 2026-11-03 Affected versions changed · Red Hat
- 2026-11-03 Affected versions changed · Red Hat
References
More pypa vulnerabilities
- TI-2025-29803 setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write CVSS 4.0HIGH 7.7
- TI-2024-05888 Remote Code Execution in pypa/setuptools CVSS 3.0HIGH 8.8
- TI-2026-78525 Shell command injection in virtualenv generated POSIX launchers CVSS 3.1HIGH 7.8
- TI-2026-78521 Code injection in virtualenv Xonsh activation script CVSS 4.0HIGH 7.1
- TI-2026-19377 wheel Allows Arbitrary File Permission Modification via Path Traversal CVSS 3.1HIGH 7.1
- TI-2026-42704 setuptools: MANIFEST.in exclusion bypass in sdist via Unicode normalization collision (NFC/NFD) on macOS APFS/HFS+ CVSS 3.1MEDIUM 6.1
Sources
- CVE-2026-113723 · CVE Program
- CVE-2026-113723 · NVD
- FIRST EPSS
- GHSA-6w3r-xr62-4xcp · GitHub Advisory Database · CC BY 4.0
- CVE-2026-113723 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences