CVE-2024-53899
A public proof of concept exists; no exploitation attested.
- Published2024-11-24
- Fixed in20.26.6
- WeaknessCWE-77 · CWE-78
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2024-11-2416:15CVE publishedNVD
Versions per branch
NVD · CISA-ADP · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 20.26 | < 20.26.6 | 20.26.6 | NVD · CISA-ADP · OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- oci-cliopenSUSE:Tumbleweedall versions · fixed in 3.61.0-1.1
- py3-cassandra-medusaWolfiall versions · fixed in 0.23.0-r0and 1 other package
- py3-virtualenvAlpaquita:streamfrom 20.16.7-r1 · fixed in 20.26.6-r0
- py3-virtualenvAlpaquita:23from 20.16.7-r1 · no fixed version listed
- python-distroRocky Linux:8all versions · fixed in 0:1.4.0-2.module+el8.10.0+1592+61442852
- python-distroRed Hat:rhel_tus:8.6::appstreamall versions · fixed in 0:1.4.0-2.module+el8.1.0+3334+5cb623d7and 1 other package
- python-distroRed Hat:rhel_tus:8.4::appstreamall versions · fixed in 0:1.4.0-2.module+el8.1.0+3334+5cb623d7and 1 other package
- python-distroRed Hat:rhel_eus:8.8::appstreamall versions · fixed in 0:1.4.0-2.module+el8.1.0+3334+5cb623d7and 1 other package
163 more package ranges on OSV.dev
Vendor advisories
virtualenv: potential command injection via virtual environment activation scripts
openshift-lightspeed-tech-preview/lightspeed-service-api-rhel9.src as a component of OpenShift Lightspeed
Red Hat Security Advisory: Red Hat OpenShift Dev Spaces 3.18.0 release
Red Hat Security Advisory: python36:3.6 security update
Red Hat Security Advisory: python36:3.6 security update
Red Hat Security Advisory: python36:3.6 security update
Red Hat Security Advisory: python36:3.6 security update
2 more advisories
Fix
- Update Virtualenv to 20.26.6
- Vendor fix Red Hat Product Security RHSA-2025:0892 · 3 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2025:0002 · 134 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Workaround from the vendor Red Hat Product Security RHSA-2025:0892 · 34 productsMitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
- No fix available, says the vendor Red Hat Product Security CVE-2024-53899 · 1 productAffected
Advisories and patches
- github.comPatch
- github.comRelease Notes
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- CISA-ADP (SSVC)PoC stated2024-11-24
- PoC-in-GitHubno public repository identifiedread 2026-11-08
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionpoc2024-11-24
- CISA-ADPCVSS 3.18.42024-11-24
- NVDCVSS 3.17.8read 2026-10-23
- CISA-ADPweakness (CWE)CWE-782024-11-24
- NVDweakness (CWE)CWE-77read 2026-10-23
- FIRST EPSSEPSS score1.6 %2026-11-08
- OSVaffected packages—
- GitHub AdvisoriesadvisoryHIGH2025-01-13
Identifiers
- AZL-53417same flawAzure Linux · MIT
- AZL-53645same flawAzure Linux · MIT
- BIT-virtualenv-2024-53899same flawBitnami · Apache-2.0
- CGA-4qxg-wfpj-jqrcsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-8gjw-5mwg-44g4same flawChainguard · CC-BY-NC-ND-4.0
- CGA-8gjx-jr9x-7785same flawChainguard · CC-BY-NC-ND-4.0
- CGA-9rj9-69f5-m4mpsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-gqv3-5g87-jxr4same flawChainguard · CC-BY-NC-ND-4.0
- CGA-hrm7-c928-fq9vsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-jf74-jfx6-whrwsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-qh3x-653h-54q6same flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2024-0172same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-rqc4-2hc7-8c8vsame flawGitHub Advisory Database · CC-BY-4.0
- PYSEC-2024-187same flawPyPA Advisory Database · CC-BY-4.0
- ALSA-2024:10953advisory covering several CVEsAlmaLinux · MIT
- OESA-2025-1241advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2025:15252-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2024:10953advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:11048advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:11091advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:11093advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:11094advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:0002advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2024:10953advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2024:4093-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2024:4143-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-7271-1advisory covering several CVEsUbuntu
- USN-7271-2advisory covering several CVEsUbuntu
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Published
- 2024-11-24
- Last Modified
- 2026-06-17
- NVD status
- Analyzed
- GitHub Advisory
- GHSA-rqc4-2hc7-8c8v
Frequently asked questions
What is CVE-2024-53899?
Is CVE-2024-53899 actively exploited?
What is the CVSS score for CVE-2024-53899?
Running virtualenv? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2024-23334same product
- CVE-2024-0727same product
- CVE-2026-21441same product
- CVE-2024-6345same product
- CVE-2024-12797same product
- CVE-2025-47273same productsetuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
- CVE-2024-3651same product
- CVE-2024-37891same product
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-rqc4-2hc7-8c8v
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0