{"id":"CVE-2024-53899","aliases":["BIT-virtualenv-2024-53899","GHSA-rqc4-2hc7-8c8v","PYSEC-2024-187"],"url":"https://o3.security/vulnerability/CVE-2024-53899","summary":"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.","published":"2024-11-24T00:00:00Z","modified":"2026-08-12T03:51:42.933702087Z","cvss":{"score":8.4,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":{"score":0.01572,"percentile":0.7415,"asOf":"2026-09-16"},"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"PyPI","name":"virtualenv","fixedVersion":"20.26.6"}],"fix":{"url":"https://github.com/pypa/virtualenv/pull/2771","label":"pypa/virtualenv#2771"},"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"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/virtualenv/PYSEC-2024-187.yaml"},{"type":"PACKAGE","url":"https://github.com/pypa/virtualenv"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:42.933702087Z"}}