CVE-2024-53899
8.4high
virtualenv allows command injection through activation scripts for a virtual environment
- Severity
- 8.4high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.57% (higher than 76% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-rqc4-2hc7-8c8vBIT-VIRTUALENV-2024-53899PYSEC-2024-187
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| virtualenv virtualenv | before 20.26.6 | CVE List, NVD |
| virtualenv (PyPI) | before 20.26.6 | GitHub Advisory Database, PyPA Advisory Database |
| virtualenv (Bitnami) | before 20.26.6 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 8.4high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 8.4high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
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.
NVD (es)
Virtualenv anterior a la versión 20.26.6 permite la inyección de comandos a través de los scripts de activación para un entorno virtual. Las cadenas de plantilla mágica no se citan correctamente al reemplazarlas. NOTA: esto no es lo mismo que CVE-2024-9287.
References
| https://github.com/pypa/virtualenv/issues/2768 | evidence, exploit, web | |
| https://github.com/pypa/virtualenv/releases/tag/20.26.6 | article, release-notes, web | |
| https://github.com/pypa/virtualenv/pull/2771 | fix, patch, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-53899 | advisory, web | |
| https://github.com/pypa/advisory-database/tree/main/vulns/virtualenv/PYSEC-2024-187.yaml | web | |
| https://github.com/pypa/virtualenv | package | |
| https://github.com/advisories/GHSA-rqc4-2hc7-8c8v | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-53899 changed 2024-11-24 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-rqc4-2hc7-8c8v changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2024-53899 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2024-187 changed 2026-06-10 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-VIRTUALENV-2024-53899 changed 2026-09-10 | Apache-2.0 |