virtualenv before 20.26.6 allows command injection through the activation scripts for a…
Priority HIGH 72CWE-78Published · Updated
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 11 fixed, 1 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-78.
Summary
virtualenv before 20.26.6 allows command injection through the activation scripts for a virtual environment. Magic template strings are not quoted correctly when replacing. NOTE: this is not the same as CVE-2024-9287.
Why it matters now
Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.01572 75th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Partial virtualenv (PyPI): 20.26.6Red Hat: 7 advisoriesRed Hat: 11 fixed, 1 without a fix
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 |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | virtualenv (PyPI) | before 20.26.6 | 20.26.6 | Patch available | GHSA-rqc4-2hc7-8c8v |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- virtualenv (PyPI) Vendor— Affected before 20.26.6 Fixed in 20.26.6 Patch available GHSA-rqc4-2hc7-8c8v
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:virtualenv:virtualenv:*:*:*:*:*:*:*:* | before 20.26.6 | Vulnerable | Virtualenv |
- cpe:2.3:a:virtualenv:virtualenv:*:*:*:*:*:*:*:* Versions before 20.26.6 Vulnerable ·Virtualenv
Remediation
- Fix · GHSA-rqc4-2hc7-8c8v virtualenv (PyPI) Fixed in 20.26.6 Advisory →
Red Hat 7 advisories
- RHSA-2025:0892 Released 2025-02-03 · Red Hat rating ImportantRed Hat OpenShift Dev Spaces 3.18.0 release
- Red Hat OpenShift Dev Spaces 3 devspaces/code-rhel9, devspaces/dashboard-rhel9, devspaces/devspaces-rhel9-operator +1
- RHSA-2025:0002 Released 2025-01-01 · Red Hat rating Importantpython36:3.6 security update
- Red Hat Enterprise Linux AppStream AUS (v.8.4) python-PyMySQL-0.10.1-2.module+el8.4.0+9657+a4b6a102.src::python36:3.6, python-distro-1.4.0-2.module+el8.1.0+3334+5cb623d7.src::python36:3.6, python-docs-3.6.7-2.module+el8.1.0+3334+5cb623d7.src::python36:3.6 +31
- Red Hat Enterprise Linux AppStream E4S (v.8.4) python-PyMySQL-0.10.1-2.module+el8.4.0+9657+a4b6a102.src::python36:3.6, python-distro-1.4.0-2.module+el8.1.0+3334+5cb623d7.src::python36:3.6, python-docs-3.6.7-2.module+el8.1.0+3334+5cb623d7.src::python36:3.6 +39
- Red Hat Enterprise Linux AppStream TUS (v.8.4) python-PyMySQL-0.10.1-2.module+el8.4.0+9657+a4b6a102.src::python36:3.6, python-distro-1.4.0-2.module+el8.1.0+3334+5cb623d7.src::python36:3.6, python-docs-3.6.7-2.module+el8.1.0+3334+5cb623d7.src::python36:3.6 +31
- RHSA-2024:11094 Released 2024-12-16 · Red Hat rating Importantpython36:3.6 security update
- Red Hat Enterprise Linux AppStream AUS (v.8.6) python-PyMySQL-0.10.1-2.module+el8.4.0+9657+a4b6a102.src::python36:3.6, python-distro-1.4.0-2.module+el8.1.0+3334+5cb623d7.src::python36:3.6, python-docs-3.6.7-2.module+el8.1.0+3334+5cb623d7.src::python36:3.6 +31
- Red Hat Enterprise Linux AppStream E4S (v.8.6) python-PyMySQL-0.10.1-2.module+el8.4.0+9657+a4b6a102.src::python36:3.6, python-distro-1.4.0-2.module+el8.1.0+3334+5cb623d7.src::python36:3.6, python-docs-3.6.7-2.module+el8.1.0+3334+5cb623d7.src::python36:3.6 +47
- Red Hat Enterprise Linux AppStream TUS (v.8.6) python-PyMySQL-0.10.1-2.module+el8.4.0+9657+a4b6a102.src::python36:3.6, python-distro-1.4.0-2.module+el8.1.0+3334+5cb623d7.src::python36:3.6, python-docs-3.6.7-2.module+el8.1.0+3334+5cb623d7.src::python36:3.6 +31
Show 4 more Red Hat advisories
- RHSA-2024:11093 Released 2024-12-16 · Red Hat rating Importantpython36:3.6 security update
- Red Hat Enterprise Linux AppStream EUS (v.8.8) python-PyMySQL-0.10.1-2.module+el8.4.0+9657+a4b6a102.src::python36:3.6, python-distro-1.4.0-2.module+el8.1.0+3334+5cb623d7.src::python36:3.6, python-docs-3.6.7-2.module+el8.1.0+3334+5cb623d7.src::python36:3.6 +47
- RHSA-2024:11091 Released 2024-12-16 · Red Hat rating Importantpython36:3.6 security update
- Red Hat Enterprise Linux AppStream AUS (v. 8.2) python-PyMySQL-0.8.0-10.module+el8.1.0+3334+5cb623d7.src::python36:3.6, python-distro-1.4.0-2.module+el8.1.0+3334+5cb623d7.src::python36:3.6, python-docs-3.6.7-2.module+el8.1.0+3334+5cb623d7.src::python36:3.6 +31
- RHSA-2024:11048 Released 2024-12-16 · Red Hat rating Importantpython-virtualenv security update
- Red Hat Enterprise Linux Server (v. 7 ELS) python-virtualenv-15.1.0-7.el7_9.1
- RHSA-2024:10953 Released 2024-12-11 · Red Hat rating Importantpython36:3.6 security update
- Red Hat Enterprise Linux AppStream (v. 8) python-PyMySQL-0.10.1-2.module+el8.10.0+20784+edafcd43.src::python36:3.6, python-distro-1.4.0-2.module+el8.10.0+20784+edafcd43.src::python36:3.6, python-docs-3.6.7-2.module+el8.10.0+20784+edafcd43.src::python36:3.6 +47
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 yet |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2024:10953 |
| Red Hat Enterprise Linux AppStream AUS (v. 8.2) | Fixed | RHSA-2024:11091 |
| Red Hat Enterprise Linux AppStream AUS (v.8.4) | Fixed | RHSA-2025:0002 |
| Red Hat Enterprise Linux AppStream AUS (v.8.6) | Fixed | RHSA-2024:11094 |
| Red Hat Enterprise Linux AppStream E4S (v.8.4) | Fixed | RHSA-2025:0002 |
| Red Hat Enterprise Linux AppStream E4S (v.8.6) | Fixed | RHSA-2024:11094 |
| Red Hat Enterprise Linux AppStream EUS (v.8.8) | Fixed | RHSA-2024:11093 |
| Red Hat Enterprise Linux AppStream TUS (v.8.4) | Fixed | RHSA-2025:0002 |
| Red Hat Enterprise Linux AppStream TUS (v.8.6) | Fixed | RHSA-2024:11094 |
| Red Hat Enterprise Linux Server (v. 7 ELS) | Fixed | RHSA-2024:11048 |
| Red Hat OpenShift Dev Spaces 3 | Fixed | RHSA-2025:0892 |
Not affected: 4 products
- Red Hat OpenShift Container Platform 4
- Red Hat OpenShift Dev Spaces
- Red Hat OpenShift Dev Spaces 3
- Red Hat Satellite 6
Timeline
- 2026-10-02 Threatist record created from CVE-2024-53899
- 2026-10-03 Alias added: GHSA-rqc4-2hc7-8c8v
References
More Virtualenv vulnerabilities
- TI-2013-04447 The mirroring support (-M, --use-mirrors) in Python Pip before 1.5 uses insecure DNS… CVSS 3.1MEDIUM 5.9
- TI-2026-18229 virtualenv Has TOCTOU Vulnerabilities in Directory Creation CVSS 3.1MEDIUM 4.5
Sources
- CVE-2024-53899 · CVE Program
- CVE-2024-53899 · NVD
- FIRST EPSS
- GHSA-rqc4-2hc7-8c8v · GitHub Advisory Database · CC BY 4.0
- CVE-2024-53899 · 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