CVE-2024-53899
Virtualenv vulnerability
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 products
Virtualenv. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Virtualenv runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/pypa/virtualenv/pull/2771 · Patch
- github.com/pypa/virtualenv/issues/2768 · Exploit
- github.com/pypa/virtualenv/releases/tag/20.26.6
- nvd.nist.gov/vuln/detail/CVE-2024-53899
- github.com/pypa/advisory-database/tree/main/vulns/virtualenv/PYSEC-2024-187.yaml
- github.com/advisories/GHSA-rqc4-2hc7-8c8v
- nvd.nist.gov/vuln/detail/CVE-2024-53899
- cve.org/CVERecord?id=CVE-2024-53899
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.