GitHub Advisory Database
GHSA-rqc4-2hc7-8c8v
virtualenv allows command injection through activation scripts for a virtual environment
Details
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 packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | virtualenv | All versions before 20.26.6 (fixed in 20.26.6) |
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/advisory-database/tree/main/vulns/virtualenv/PYSEC-2024-187.yaml
- https://github.com/pypa/virtualenv
- https://github.com/pypa/virtualenv/releases/tag/20.26.6