{"answers":{"affected":"3 open source packages ship an affected version, including agpt. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6091 exists.","fix":"No fix has been published for CVE-2024-6091 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-6091 is a critical command injection vulnerability in significant-gravitas/autogpt, published on 11 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-6091 and fix it if it is affected.\n\nWhat it is: CVE-2024-6091 is a critical command injection vulnerability in significant-gravitas/autogpt, published on 11 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6091 exists.\n\nAffected packages and fixed versions:\n- agpt (PyPI): affected all versions up to 0.5.1; no fix listed\n- agpt (PyPI): affected all versions up to 0.5.1; no fix listed\n- agpt (PyPI): affected all versions up to 0.5.1; no fix listed\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-6091/ (Markdown: https://insights.sbomify.com/CVE-2024-6091/index.md)","id":"CVE-2024-6091","markdown":"https://insights.sbomify.com/CVE-2024-6091/index.md","name":"CVE-2024-6091","record":{"aliases":["GHSA-g84q-54hf-36rg","PYSEC-2026-257"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"AutoGPT Python library","requires_auth":"none","summary":"Attackers can bypass shell command denylists in AutoGPT by using modified paths, enabling arbitrary command execution.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[{"product":"autogpt_classic","vendor":"agpt"}],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"A vulnerability in significant-gravitas/autogpt version 0.5.1 allows an attacker to bypass the shell commands denylist settings. The issue arises when the denylist is configured to block specific commands, such as 'whoami' and '/bin/whoami'. An attacker can circumvent this restriction by executing commands with a modified path, such as '/bin/./whoami', which is not recognized by the denylist.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"Shell Command Denylist Bypass in significant-gravitas/autogpt","id":"CVE-2024-6091","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"command_injection","year":"2024"},"n_packages":3,"n_references":2,"next":{"headline":"This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.","id":"CVE-2024-6093"},"packages":[{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["0.5.1"],"package":"agpt","purl":null,"source":"GHSA-g84q-54hf-36rg"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["0.5.1"],"package":"agpt","purl":"pkg:pypi/agpt","source":"GHSA-g84q-54hf-36rg"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["0.5.1"],"package":"agpt","purl":"pkg:pypi/agpt","source":"PYSEC-2026-257"}],"prev":{"headline":"Path Traversal Vulnerability in gaizhenbiao/chuanhuchatgpt","id":"CVE-2024-6090"},"products":["significant-gravitas/autogpt"],"published":"2024-09-11","related":[{"cvss_score":8.8,"headline":"Command Injection in significant-gravitas/autogpt","id":"CVE-2024-8156","kev_date_added":null,"published":"2025-03-20"},{"cvss_score":8.8,"headline":"CSRF to RCE in significant-gravitas/autogpt","id":"CVE-2024-1879","kev_date_added":null,"published":"2024-06-06"},{"cvss_score":8.8,"headline":"Improper Neutralization of Special Elements used in an OS Command in significant-gravitas/autogpt","id":"CVE-2024-1881","kev_date_added":null,"published":"2024-06-06"},{"cvss_score":8.1,"headline":"Docker escape in Auto-GPT when running from docker-compose.yml included in git repo","id":"CVE-2023-37273","kev_date_added":null,"published":"2023-07-13"},{"cvss_score":7.8,"headline":"OS Command Injection in MacOS Text-To-Speech Class in significant-gravitas/autogpt","id":"CVE-2024-1880","kev_date_added":null,"published":"2024-06-06"},{"cvss_score":7.6,"headline":"Python code execution sandbox escape in non-docker version in Auto-GPT","id":"CVE-2023-37274","kev_date_added":null,"published":"2023-07-13"}],"sources":[{"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":"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":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-09-11","vendors":["significant-gravitas"]},"summary":"Attackers can bypass shell command denylists in AutoGPT by using modified paths, enabling arbitrary command execution.","url":"https://insights.sbomify.com/CVE-2024-6091/"}