{"id":"CVE-2024-53899","aliases":["CVE-2024-53899","GHSA-rqc4-2hc7-8c8v","BIT-VIRTUALENV-2024-53899","PYSEC-2024-187"],"related":[],"kind":"vulnerability","state":"published","title":"virtualenv allows command injection through activation scripts for a virtual environment","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Virtualenv anterior a la versión 20.26.6 permite la inyección de comandos a través de los scripts de activación para un entorno virtual. Las cadenas de plantilla mágica no se citan correctamente al reemplazarlas. NOTA: esto no es lo mismo que CVE-2024-9287.","source":"nvd"}],"published":"2024-11-24T00:00:00.000Z","modified":"2026-09-10T16:01:48.396Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-77","CWE-78"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"20.26.6","status":"affected"}],"vendor":"virtualenv","product":"virtualenv","cpe":"cpe:2.3:a:virtualenv:virtualenv:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"20.26.6"}],"ecosystem":"PyPI","package":"virtualenv","purl":"pkg:pypi/virtualenv","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"20.26.6"}],"vendor":"virtualenv","product":"virtualenv","cpe":"cpe:2.3:a:virtualenv:virtualenv:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"20.26.6"}],"ecosystem":"PyPI","package":"virtualenv","purl":"pkg:pypi/virtualenv","source":"pysec"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"20.26.6"}],"ecosystem":"Bitnami","package":"virtualenv","purl":"pkg:bitnami/virtualenv","source":"bitnami"}],"references":[{"url":"https://github.com/pypa/virtualenv/issues/2768","tags":["evidence","exploit","web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/pypa/virtualenv/releases/tag/20.26.6","tags":["article","release-notes","web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/pypa/virtualenv/pull/2771","tags":["fix","patch","web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53899","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/virtualenv/PYSEC-2024-187.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/virtualenv","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-rqc4-2hc7-8c8v","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-11-24T18:23:58.008Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-53899","url":"https://www.cve.org/CVERecord?id=CVE-2024-53899","licence":"CVE Terms of Use","modified":"2024-11-24T18:25:36.636Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rqc4-2hc7-8c8v","url":"https://github.com/advisories/GHSA-rqc4-2hc7-8c8v","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:56.097Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-53899","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53899","licence":"Public domain","modified":"2026-06-17T08:09:28.230Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-187","url":"https://osv.dev/vulnerability/PYSEC-2024-187","licence":"CC-BY-4.0","modified":"2026-06-10T17:02:47.269Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-VIRTUALENV-2024-53899","url":"https://osv.dev/vulnerability/BIT-VIRTUALENV-2024-53899","licence":"Apache-2.0","modified":"2026-09-10T16:01:48.396Z"}],"updatedAt":"2026-11-25T22:58:49.401Z","epss":{"score":0.01572,"percentile":0.76129,"date":"2026-12-01T12:00:22.000Z"}}