{"id":"CVE-2024-53899","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.","aliases":["BIT-virtualenv-2024-53899","GHSA-rqc4-2hc7-8c8v","PYSEC-2024-187"],"modified":"2026-08-12T03:51:42.933702087Z","published":"2024-11-24T00:00:00Z","related":["ALSA-2024:10953","CGA-hwhg-wr6c-6rj8","SUSE-SU-2024:4093-1","SUSE-SU-2024:4143-1","openSUSE-SU-2025:15252-1"],"database_specific":{"cna_assigner":"mitre","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53899.json"},"references":[{"type":"WEB","url":"https://github.com/pypa/virtualenv/releases/tag/20.26.6"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53899.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53899"},{"type":"REPORT","url":"https://github.com/pypa/virtualenv/issues/2768"},{"type":"FIX","url":"https://github.com/pypa/virtualenv/pull/2771"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/pypa/virtualenv","events":[{"introduced":"0"},{"fixed":"ec04726d065372ffad9920998aef1ce41252a61d"}],"database_specific":{"source":["DESCRIPTION","CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:virtualenv:virtualenv:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"20.26.6"}]}}],"versions":["20.24.3","20.3.0","20.0.32","20.0.7","20.0.0b2","20.0.0b1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-53899.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}