CVE-2024-53899: virtualenv Command Injection
CVSS: 8.4v3.1HighAnalyzed
AliasesSUSE-SU-2024:4093-1SUSE-SU-2024:4143-1GHSA-rqc4-2hc7-8c8vBIT-virtualenv-2024-53899PYSEC-2024-187RHSA-2024:10953RHSA-2024:11048RHSA-2024:11091RHSA-2024:11093RHSA-2024:11094RHSA-2025:0002UBUNTU-CVE-2024-53899USN-7271-1USN-7271-2DEBIAN-CVE-2024-53899CGA-4qxg-wfpj-jqrcCGA-hrm7-c928-fq9vCGA-jf74-jfx6-whrwCGA-qh3x-653h-54q6openSUSE-SU-2025:15252-1CGA-8gjw-5mwg-44g4CGA-8gjx-jr9x-7785CGA-9rj9-69f5-m4mpCGA-gqv3-5g87-jxr4
Published 24-11-2024Last modified 24-11-2024
Vulnerability summary
CVE-2024-53899 is a high (CVSS 8.4) Command Injection vulnerability in virtualenv. EPSS estimates a 1.57% chance of exploitation in the next 30 days, higher than 75% of scored vulnerabilities. 1 public exploit is recorded.
CVSS score
8.4/10
010
High · v3.1 (CVE.org)EPSS score
1.57%
0%100%
Low · 0.00 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github
Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 24-11-2024PublishedVulnerability first disclosed.
- 24-11-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
8 scores · 8 sources · 1 versionHigh 8.4Preferred score · CVE.org (CNA)
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HSources8 sources · 7.8–9.8
- OSV · PypiEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
- OSV · Red hatEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HDiffers
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HDiffers
- OSV · WolfiEcosystem advisory · calculated8.4HighCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated8.4HighCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
1.57%
Chance of exploitation in the next 30 days
Percentile
75%
Versus all other CVEs
30-day change
0.00 pp
From 1.57% on 19-09-2026
19-09-202619-10-2026
EPSS score1.57%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundVirtualenv
Maturity: poc
Weaknesses
CWE · root cause- CWE-77Improper Neutralization of Special Elements used in a Command ('Command Injection')The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
- CWE-78Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')The 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 when it is sent to a downstream component.
Affected systems
Redhat39 products
- python-distro< 0:1.4.0-2.module+el8.10.0+20784+edafcd43 | < 0:1.4.0-2.module+el8.1.0+3334+5cb623d7
- python-docs< 0:3.6.7-2.module+el8.10.0+20784+edafcd43 | < 0:3.6.7-2.module+el8.1.0+3334+5cb623d7
- python-docutils< 0:0.14-12.module+el8.10.0+20784+edafcd43 | < 0:0.14-12.module+el8.1.0+3334+5cb623d7
- python-nose< 0:1.3.7-31.module+el8.10.0+20784+edafcd43 | < 0:1.3.7-30.module+el8.1.0+3334+5cb623d7 | < 0:1.3.7-31.module+el8.5.0+12207+5c5719bc | < 0:1.3.7-30.module+el8.4.0+15040+36b018e7.1
- python-nose-docs< 0:1.3.7-31.module+el8.10.0+20784+edafcd43 | < 0:1.3.7-30.module+el8.1.0+3334+5cb623d7 | < 0:1.3.7-31.module+el8.5.0+12207+5c5719bc | < 0:1.3.7-30.module+el8.4.0+15040+36b018e7.1
Suse7 products
- python-virtualenv&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS< 20.22.0-150400.9.6.1
- python-virtualenv&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS< 20.22.0-150400.9.6.1
- python-virtualenv&distro=SUSE Linux Enterprise Module for Python 3 15 SP5< 20.22.0-150400.9.6.1
- python-virtualenv&distro=SUSE Linux Enterprise Module for Python 3 15 SP6< 20.22.0-150400.9.6.1
- python-virtualenv&distro=SUSE Linux Enterprise Server 15 SP4-LTSS< 20.22.0-150400.9.6.1
Chainguard4 products
- py3-cassandra-medusa< 0.23.0-r0
- py3-cassandra-medusa-compat< 0.23.0-r0
- request-1276< 0.23.0-r0
- request-1276-compat< 0.23.0-r0
Opensuse4 products
- oci-cli&distro=openSUSE Tumbleweed< 3.61.0-1.1
- python-virtualenv&distro=openSUSE Leap 15.5< 20.22.0-150400.9.6.1
- python-virtualenv&distro=openSUSE Leap 15.6< 20.22.0-150400.9.6.1
- python3-virtualenv&distro=openSUSE Leap 15.6< 20.17.1-150600.3.5.1
Wolfi2 products
- py3-cassandra-medusa< 0.23.0-r0
- py3-cassandra-medusa-compat< 0.23.0-r0
Debian1 product
- python-virtualenvAll versions (No fix recorded) | < 20.26.6+ds-1
PyPI1 product
- virtualenv< 20.26.6
Ubuntu1 product
- python-virtualenvAll versions (No fix recorded) | < 20.0.17-1ubuntu0.4+esm1 | < 20.13.0+ds-2ubuntu0.1~esm1 | < 20.25.0+ds-2ubuntu0.1~esm1
Virtualenv1 product
- virtualenv< 20.26.6
9 vendors · 60 products
References
33 linksShow all 33 references
- github.com/pypa/virtualenvPACKAGE