{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-8156 exists.","fix":"No fix has been published for CVE-2024-8156 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-8156 is a high-severity command injection vulnerability in significant-gravitas/autogpt, published on 20 Mar 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-8156 and fix it if it is affected.\n\nWhat it is: CVE-2024-8156 is a high-severity command injection vulnerability in significant-gravitas/autogpt, published on 20 Mar 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-8156 exists.\n\nAffected product: significant-gravitas/autogpt. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-8156/ (Markdown: https://insights.sbomify.com/CVE-2024-8156/index.md)","id":"CVE-2024-8156","markdown":"https://insights.sbomify.com/CVE-2024-8156/index.md","name":"CVE-2024-8156","record":{"aliases":["GHSA-rrfw-qqmx-gqwx"],"analysis":{"component_type":"developer_tool","fix_type":"patch","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"GitHub Actions workflow","requires_auth":"none","summary":"Attackers can inject arbitrary commands via branch names in pull requests, leading to reverse shell access and token theft in AutoGPT's CI workflow.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[{"product":"autogpt_classic","vendor":"agpt"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"description":"A command injection vulnerability exists in the workflow-checker.yml workflow of significant-gravitas/autogpt. The untrusted user input `github.head.ref` is used insecurely, allowing an attacker to inject arbitrary commands. This vulnerability affects versions up to and including the latest version. An attacker can exploit this by creating a branch name with a malicious payload and opening a pull request, potentially leading to reverse shell access or theft of sensitive tokens and keys.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"Command Injection in significant-gravitas/autogpt","id":"CVE-2024-8156","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2024"},"n_packages":0,"n_references":2,"next":{"headline":"Alphabetical List \u003c= 1.0.3 - Settings Update via CSRF","id":"CVE-2024-8157"},"packages":[],"prev":{"headline":"ContiNew Admin tree sql injection","id":"CVE-2024-8155"},"products":["significant-gravitas/autogpt"],"published":"2025-03-20","related":[{"cvss_score":9.8,"headline":"Shell Command Denylist Bypass in significant-gravitas/autogpt","id":"CVE-2024-6091","kev_date_added":null,"published":"2024-09-11"},{"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":"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":"2025-10-15","vendors":["significant-gravitas"]},"summary":"Attackers can inject arbitrary commands via branch names in pull requests, leading to reverse shell access and token theft in AutoGPT's CI workflow.","url":"https://insights.sbomify.com/CVE-2024-8156/"}