{"answers":{"affected":"4 open source packages ship an affected version, including virtualenv. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-53899 exists.","fix":"Upgrade virtualenv to 20.26.6 or later.","what":"CVE-2024-53899 is a high-severity command injection vulnerability in n/a, published on 24 Nov 2024. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-53899 and fix it if it is affected.\n\nWhat it is: CVE-2024-53899 is a high-severity command injection vulnerability in n/a, published on 24 Nov 2024. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-53899 exists.\n\nAffected packages and fixed versions:\n- virtualenv (Bitnami): affected all versions; fixed in 20.26.6\n- virtualenv (PyPI): affected all versions; fixed in 20.26.6\n- virtualenv (PyPI): affected all versions; fixed in 20.26.6\n- virtualenv (PyPI): affected all versions; fixed in 20.26.6\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-53899/ (Markdown: https://insights.sbomify.com/CVE-2024-53899/index.md)","id":"CVE-2024-53899","markdown":"https://insights.sbomify.com/CVE-2024-53899/index.md","name":"CVE-2024-53899","record":{"aliases":["ALSA-2024:10953","AZL-53417","AZL-53645","BELL-CVE-2024-53899","BIT-virtualenv-2024-53899","CLSA-2026-1771855453","CLSA-2026-1771855894","CLSA-2026-1792510471","CLSA-2026-1792629041","CLSA-2026-1792629147","DEBIAN-CVE-2024-53899","ECHO-4ff8-0678-a958","GHSA-rqc4-2hc7-8c8v","OESA-2025-1241","PYSEC-2024-187","RHSA-2024:10953","RHSA-2024:11048","RHSA-2024:11091","RHSA-2024:11093","RHSA-2024:11094","RHSA-2025:0002","RLSA-2024:10953","ROOT-APP-PYPI-CVE-2024-53899","SUSE-SU-2024:4093-1","SUSE-SU-2024:4143-1","UBUNTU-CVE-2024-53899","USN-7271-1","USN-7271-2","openSUSE-SU-2025:15252-1"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python virtualenv tool","requires_auth":"none","summary":"Attackers can execute arbitrary commands via unquoted magic template strings in virtual environment activation scripts.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"virtualenv","vendor":"virtualenv"}],"cvss":{"score":8.4,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"},{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"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.","ecosystems":["AlmaLinux:8","Bitnami","PyPI","Red Hat:enterprise_linux:8::appstream","Red Hat:rhel_aus:8.2::appstream","Red Hat:rhel_aus:8.4::appstream","Red Hat:rhel_aus:8.6::appstream","Red Hat:rhel_e4s:8.4::appstream","Red Hat:rhel_e4s:8.6::appstream","Red Hat:rhel_els:7","Red Hat:rhel_eus:8.8::appstream","Red Hat:rhel_tus:8.4::appstream","Red Hat:rhel_tus:8.6::appstream","Rocky Linux:8","SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","SUSE:Linux Enterprise Module for Development Tools 15 SP6","SUSE:Linux Enterprise Module for Python 3 15 SP5","SUSE:Linux Enterprise Module for Python 3 15 SP6","SUSE:Linux Enterprise Server 15 SP4-LTSS","SUSE:Linux Enterprise Server for SAP Applications 15 SP4","openSUSE:Leap 15.5","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"virtualenv allows command injection through activation scripts for a virtual environment","id":"CVE-2024-53899","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"command_injection","year":"2024"},"n_packages":401,"n_references":3,"next":{"headline":"Mongoose search injection vulnerability","id":"CVE-2024-53900"},"packages":[{"ecosystem":"Bitnami","fixed":["20.26.6"],"introduced":["0"],"last_affected":[],"package":"virtualenv","purl":"pkg:bitnami/virtualenv","source":"BIT-virtualenv-2024-53899"},{"ecosystem":"PyPI","fixed":["20.26.6"],"introduced":["0"],"last_affected":[],"package":"virtualenv","purl":null,"source":"GHSA-rqc4-2hc7-8c8v"},{"ecosystem":"PyPI","fixed":["20.26.6"],"introduced":["0"],"last_affected":[],"package":"virtualenv","purl":"pkg:pypi/virtualenv","source":"GHSA-rqc4-2hc7-8c8v"},{"ecosystem":"PyPI","fixed":["20.26.6"],"introduced":["0"],"last_affected":[],"package":"virtualenv","purl":"pkg:pypi/virtualenv","source":"PYSEC-2024-187"},{"ecosystem":"AlmaLinux:8","fixed":["1.3.7-31.module_el8.9.0+3700+efebe9fd"],"introduced":["0"],"last_affected":[],"package":"python-nose-docs","purl":"pkg:rpm/almalinux/python-nose-docs","source":"ALSA-2024:10953"},{"ecosystem":"AlmaLinux:8","fixed":["3.7.0-1.module_el8.9.0+3700+efebe9fd"],"introduced":["0"],"last_affected":[],"package":"python-pymongo-doc","purl":"pkg:rpm/almalinux/python-pymongo-doc","source":"ALSA-2024:10953"},{"ecosystem":"AlmaLinux:8","fixed":["1.3.2-3.module_el8.10.0+3769+3838165b"],"introduced":["0"],"last_affected":[],"package":"python-sqlalchemy-doc","purl":"pkg:rpm/almalinux/python-sqlalchemy-doc","source":"ALSA-2024:10953"},{"ecosystem":"AlmaLinux:8","fixed":["15.1.0-23.module_el8.10.0+3937+b6a3652f"],"introduced":["0"],"last_affected":[],"package":"python-virtualenv-doc","purl":"pkg:rpm/almalinux/python-virtualenv-doc","source":"ALSA-2024:10953"},{"ecosystem":"AlmaLinux:8","fixed":["0.10.1-2.module_el8.9.0+3700+efebe9fd"],"introduced":["0"],"last_affected":[],"package":"python3-PyMySQL","purl":"pkg:rpm/almalinux/python3-PyMySQL","source":"ALSA-2024:10953"},{"ecosystem":"AlmaLinux:8","fixed":["3.7.0-1.module_el8.9.0+3700+efebe9fd"],"introduced":["0"],"last_affected":[],"package":"python3-bson","purl":"pkg:rpm/almalinux/python3-bson","source":"ALSA-2024:10953"},{"ecosystem":"AlmaLinux:8","fixed":["1.4.0-2.module_el8.9.0+3700+efebe9fd"],"introduced":["0"],"last_affected":[],"package":"python3-distro","purl":"pkg:rpm/almalinux/python3-distro","source":"ALSA-2024:10953"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.7-2.module_el8.9.0+3700+efebe9fd"],"introduced":["0"],"last_affected":[],"package":"python3-docs","purl":"pkg:rpm/almalinux/python3-docs","source":"ALSA-2024:10953"},{"ecosystem":"AlmaLinux:8","fixed":["0.14-12.module_el8.9.0+3700+efebe9fd"],"introduced":["0"],"last_affected":[],"package":"python3-docutils","purl":"pkg:rpm/almalinux/python3-docutils","source":"ALSA-2024:10953"},{"ecosystem":"AlmaLinux:8","fixed":["1.3.7-31.module_el8.9.0+3700+efebe9fd"],"introduced":["0"],"last_affected":[],"package":"python3-nose","purl":"pkg:rpm/almalinux/python3-nose","source":"ALSA-2024:10953"},{"ecosystem":"AlmaLinux:8","fixed":["2.2.0-22.module_el8.9.0+3700+efebe9fd"],"introduced":["0"],"last_affected":[],"package":"python3-pygments","purl":"pkg:rpm/almalinux/python3-pygments","source":"ALSA-2024:10953"},{"ecosystem":"AlmaLinux:8","fixed":["3.7.0-1.module_el8.9.0+3700+efebe9fd"],"introduced":["0"],"last_affected":[],"package":"python3-pymongo","purl":"pkg:rpm/almalinux/python3-pymongo","source":"ALSA-2024:10953"},{"ecosystem":"AlmaLinux:8","fixed":["3.7.0-1.module_el8.9.0+3700+efebe9fd"],"introduced":["0"],"last_affected":[],"package":"python3-pymongo-gridfs","purl":"pkg:rpm/almalinux/python3-pymongo-gridfs","source":"ALSA-2024:10953"},{"ecosystem":"AlmaLinux:8","fixed":["1.0.0-21.module_el8.9.0+3700+efebe9fd"],"introduced":["0"],"last_affected":[],"package":"python3-scipy","purl":"pkg:rpm/almalinux/python3-scipy","source":"ALSA-2024:10953"},{"ecosystem":"AlmaLinux:8","fixed":["1.3.2-3.module_el8.10.0+3769+3838165b"],"introduced":["0"],"last_affected":[],"package":"python3-sqlalchemy","purl":"pkg:rpm/almalinux/python3-sqlalchemy","source":"ALSA-2024:10953"},{"ecosystem":"AlmaLinux:8","fixed":["15.1.0-23.module_el8.10.0+3937+b6a3652f"],"introduced":["0"],"last_affected":[],"package":"python3-virtualenv","purl":"pkg:rpm/almalinux/python3-virtualenv","source":"ALSA-2024:10953"},{"ecosystem":"AlmaLinux:8","fixed":["1:0.31.1-3.module_el8.9.0+3700+efebe9fd"],"introduced":["0"],"last_affected":[],"package":"python3-wheel","purl":"pkg:rpm/almalinux/python3-wheel","source":"ALSA-2024:10953"},{"ecosystem":"AlmaLinux:8","fixed":["1:0.31.1-3.module_el8.9.0+3700+efebe9fd"],"introduced":["0"],"last_affected":[],"package":"python3-wheel-wheel","purl":"pkg:rpm/almalinux/python3-wheel-wheel","source":"ALSA-2024:10953"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-39.module_el8.10.0+3769+3838165b"],"introduced":["0"],"last_affected":[],"package":"python36","purl":"pkg:rpm/almalinux/python36","source":"ALSA-2024:10953"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-39.module_el8.10.0+3769+3838165b"],"introduced":["0"],"last_affected":[],"package":"python36-debug","purl":"pkg:rpm/almalinux/python36-debug","source":"ALSA-2024:10953"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-39.module_el8.10.0+3769+3838165b"],"introduced":["0"],"last_affected":[],"package":"python36-devel","purl":"pkg:rpm/almalinux/python36-devel","source":"ALSA-2024:10953"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-39.module_el8.10.0+3769+3838165b"],"introduced":["0"],"last_affected":[],"package":"python36-rpm-macros","purl":"pkg:rpm/almalinux/python36-rpm-macros","source":"ALSA-2024:10953"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.10.1-2.module+el8.10.0+20784+edafcd43"],"introduced":["0"],"last_affected":[],"package":"python-PyMySQL","purl":"pkg:rpm/redhat/python-PyMySQL","source":"RHSA-2024:10953"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.4.0-2.module+el8.10.0+20784+edafcd43"],"introduced":["0"],"last_affected":[],"package":"python-distro","purl":"pkg:rpm/redhat/python-distro","source":"RHSA-2024:10953"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.6.7-2.module+el8.10.0+20784+edafcd43"],"introduced":["0"],"last_affected":[],"package":"python-docs","purl":"pkg:rpm/redhat/python-docs","source":"RHSA-2024:10953"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.14-12.module+el8.10.0+20784+edafcd43"],"introduced":["0"],"last_affected":[],"package":"python-docutils","purl":"pkg:rpm/redhat/python-docutils","source":"RHSA-2024:10953"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.3.7-31.module+el8.10.0+20784+edafcd43"],"introduced":["0"],"last_affected":[],"package":"python-nose","purl":"pkg:rpm/redhat/python-nose","source":"RHSA-2024:10953"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.3.7-31.module+el8.10.0+20784+edafcd43"],"introduced":["0"],"last_affected":[],"package":"python-nose-docs","purl":"pkg:rpm/redhat/python-nose-docs","source":"RHSA-2024:10953"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.2.0-22.module+el8.10.0+20784+edafcd43"],"introduced":["0"],"last_affected":[],"package":"python-pygments","purl":"pkg:rpm/redhat/python-pygments","source":"RHSA-2024:10953"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.7.0-1.module+el8.10.0+20784+edafcd43"],"introduced":["0"],"last_affected":[],"package":"python-pymongo","purl":"pkg:rpm/redhat/python-pymongo","source":"RHSA-2024:10953"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.7.0-1.module+el8.10.0+20784+edafcd43"],"introduced":["0"],"last_affected":[],"package":"python-pymongo-debuginfo","purl":"pkg:rpm/redhat/python-pymongo-debuginfo","source":"RHSA-2024:10953"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.7.0-1.module+el8.10.0+20784+edafcd43"],"introduced":["0"],"last_affected":[],"package":"python-pymongo-debugsource","purl":"pkg:rpm/redhat/python-pymongo-debugsource","source":"RHSA-2024:10953"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.7.0-1.module+el8.10.0+20784+edafcd43"],"introduced":["0"],"last_affected":[],"package":"python-pymongo-doc","purl":"pkg:rpm/redhat/python-pymongo-doc","source":"RHSA-2024:10953"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.3.2-3.module+el8.10.0+20981+3704b446"],"introduced":["0"],"last_affected":[],"package":"python-sqlalchemy","purl":"pkg:rpm/redhat/python-sqlalchemy","source":"RHSA-2024:10953"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.3.2-3.module+el8.10.0+20981+3704b446"],"introduced":["0"],"last_affected":[],"package":"python-sqlalchemy-doc","purl":"pkg:rpm/redhat/python-sqlalchemy-doc","source":"RHSA-2024:10953"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:15.1.0-23.module+el8.10.0+22619+61b70790"],"introduced":["0"],"last_affected":[],"package":"python-virtualenv","purl":"pkg:rpm/redhat/python-virtualenv","source":"RHSA-2024:10953"}],"prev":{"headline":"Denial of service in NVIDIA vGPU software","id":"CVE-2024-53881"},"products":["n/a"],"published":"2024-11-24","related":[{"cvss_score":4.5,"headline":"virtualenv Has TOCTOU Vulnerabilities in Directory Creation","id":"CVE-2026-22702","kev_date_added":null,"published":"2026-01-10"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-11-24","vendors":["n/a"]},"summary":"Attackers can execute arbitrary commands via unquoted magic template strings in virtual environment activation scripts.","url":"https://insights.sbomify.com/CVE-2024-53899/"}