CVE-2024-53899: virtualenv before 20.26.6 allows command injection through the activation scripts for a virtual environment
CVE-2024-53899 is a high-severity flaw (CVSS 7.8) affecting virtualenv. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 this priority
- High severity
- Public exploit reference
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-53899?
virtualenv: upgrade to 20.26.6. Exact commands for each OS are on this page.
Is CVE-2024-53899 being exploited?
CVE-2024-53899 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-53899 affect?
CVE-2024-53899 affects virtualenv. Severity is high (CVSS 7.8). 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.
How urgent is CVE-2024-53899?
Priority 51/100. High severity; Public exploit reference