{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-1879 exists.","fix":"No fix has been published for CVE-2024-1879 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-1879 is a high-severity vulnerability in significant-gravitas/autogpt, published on 6 Jun 2024. 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-1879 and fix it if it is affected.\n\nWhat it is: CVE-2024-1879 is a high-severity vulnerability in significant-gravitas/autogpt, published on 6 Jun 2024. 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-1879 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-1879/ (Markdown: https://insights.sbomify.com/CVE-2024-1879/index.md)","id":"CVE-2024-1879","markdown":"https://insights.sbomify.com/CVE-2024-1879/index.md","name":"CVE-2024-1879","record":{"aliases":["GHSA-wwg8-x274-5x5g"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"AutoGPT server","requires_auth":"none","summary":"Attackers can execute arbitrary commands on AutoGPT servers via CSRF due to missing API protections and permissive CORS settings.","user_interaction":"required","vuln_class":"csrf"},"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-352","name":"Cross-Site Request Forgery"}],"description":"A Cross-Site Request Forgery (CSRF) vulnerability in significant-gravitas/autogpt version v0.5.0 allows attackers to execute arbitrary commands on the AutoGPT server. The vulnerability stems from the lack of protections on the API endpoint receiving instructions, enabling an attacker to direct a user running AutoGPT in their local network to a malicious website. This site can then send crafted requests to the AutoGPT server, leading to command execution. The issue is exacerbated by CORS being enabled for arbitrary origins by default, allowing the attacker to read the response of all cross-site queries. This vulnerability was addressed in version 5.1.","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":"CSRF to RCE in significant-gravitas/autogpt","id":"CVE-2024-1879","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"csrf","year":"2024"},"n_packages":0,"n_references":2,"next":{"headline":"OS Command Injection in MacOS Text-To-Speech Class in significant-gravitas/autogpt","id":"CVE-2024-1880"},"packages":[],"prev":{"headline":"SourceCodester Employee Management System myprofile.php sql injection","id":"CVE-2024-1878"},"products":["significant-gravitas/autogpt"],"published":"2024-06-06","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":"Command Injection in significant-gravitas/autogpt","id":"CVE-2024-8156","kev_date_added":null,"published":"2025-03-20"},{"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":"2024-08-21","vendors":["significant-gravitas"]},"summary":"Attackers can execute arbitrary commands on AutoGPT servers via CSRF due to missing API protections and permissive CORS settings.","url":"https://insights.sbomify.com/CVE-2024-1879/"}