pypa/virtualenv · Security
virtualenv allows command injection through activation scripts for a virtual environment
- GHSA ID
- GHSA-rqc4-2hc7-8c8v
- CVE ID
- CVE-2024-53899
- Severity
- high
- Published
- Updated
- CVSS
- 8.4 · CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 8.4 · CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
CWEs
- CWE-77 · Improper Neutralization of Special Elements used in a Command ('Command Injection')
- CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-53899 ↗
- https://github.com/pypa/virtualenv/issues/2768 ↗
- https://github.com/pypa/virtualenv/pull/2771 ↗
- https://github.com/pypa/virtualenv/releases/tag/20.26.6 ↗
- https://github.com/pypa/advisory-database/tree/main/vulns/virtualenv/PYSEC-2024-187.yaml ↗
- https://github.com/advisories/GHSA-rqc4-2hc7-8c8v ↗