Skip to main content
Public proof of conceptFix available

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?

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
  1. 2024-11-2416:15CVE publishedNVD

Versions per branch

NVD · CISA-ADP · OSV
Virtualenv
BranchAffectedFixed in
20.26< 20.26.620.26.6

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

  • CVE-2024-53899 Red Hat Product Security505 products fixed · 1 known affected

    virtualenv: potential command injection via virtual environment activation scripts

    openshift-lightspeed-tech-preview/lightspeed-service-api-rhel9.src as a component of OpenShift Lightspeed

  • RHSA-2025:0892 Red Hat Product Security3 products fixed

    Red Hat Security Advisory: Red Hat OpenShift Dev Spaces 3.18.0 release

  • RHSA-2025:0002 Red Hat Product Security134 products fixed

    Red Hat Security Advisory: python36:3.6 security update

  • RHSA-2024:11094 Red Hat Product Security162 products fixed

    Red Hat Security Advisory: python36:3.6 security update

  • RHSA-2024:11093 Red Hat Product Security82 products fixed

    Red Hat Security Advisory: python36:3.6 security update

  • RHSA-2024:11091 Red Hat Product Security40 products fixed

    Red Hat Security Advisory: python36:3.6 security update

2 more advisories

Full record on NVD

Fix

  1. Update Virtualenv to 20.26.6
  2. 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
  3. 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
  4. 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.
  5. No fix available, says the vendor Red Hat Product Security CVE-2024-53899 · 1 productAffected

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

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?

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.

Is CVE-2024-53899 actively exploited?

A proof-of-concept exploit exists for CVE-2024-53899, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2024-53899?

CVE-2024-53899 has a CVSS v3 base score of 7.8 (HIGH severity), with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

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

Sources for this record