CVE-2024-53899
HIGH 7.8CVSS 3.1virtualenv allows command injection through activation scripts for a virtual environment
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.
- Published
- 24 Nov 2024
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-77CWE-78
- Also known as
- BIT-virtualenv-2024-53899GHSA-rqc4-2hc7-8c8vPYSEC-2024-187
- Sources
- NVDJSONOSV GHSA-rqc4-2hc7-8c8vJSONOSV PYSEC-2024-187JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | PyPA | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | virtualenv | virtualenvcpe:2.3:a:virtualenv:virtualenv:*:*:*:*:*:*:*:* |
< 20.26.6 | 20.26.6 |
| OSV | PyPI | virtualenv | < 20.26.6 | 20.26.6 |
References
- https://github.com/pypa/virtualenv/issues/2768 · Exploit, WEB, EVIDENCE
- https://github.com/pypa/virtualenv/pull/2771 · Patch, WEB, FIX
- https://github.com/pypa/virtualenv/releases/tag/20.26.6 · Release Notes, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-53899 · ADVISORY
- 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
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 24 Nov 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 24 Nov 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 24 Nov 2024)