{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-37274 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2023-37274 yet. Limit exposure of the affected software until one is available.","what":"CVE-2023-37274 is a high-severity path traversal vulnerability in Significant-Gravitas Auto-GPT, published on 13 Jul 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-37274 and fix it if it is affected.\n\nWhat it is: CVE-2023-37274 is a high-severity path traversal vulnerability in Significant-Gravitas Auto-GPT, published on 13 Jul 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2023-37274 in the wild and no public exploit code.\n\nAffected product: Significant-Gravitas Auto-GPT. 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-2023-37274/ (Markdown: https://insights.sbomify.com/CVE-2023-37274/index.md)","id":"CVE-2023-37274","markdown":"https://insights.sbomify.com/CVE-2023-37274/index.md","name":"CVE-2023-37274","record":{"aliases":["GHSA-5h38-mgp9-rj5f"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Auto-GPT application","requires_auth":"low_privilege","summary":"Path traversal in Auto-GPT allows overwriting host files to escape sandbox and execute arbitrary code on the host system.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"autogpt_classic","vendor":"agpt"}],"cvss":{"score":7.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"Auto-GPT is an experimental open-source application showcasing the capabilities of the GPT-4 language model. When Auto-GPT is executed directly on the host system via the provided run.sh or run.bat files, custom Python code execution is sandboxed using a temporary dedicated docker container which should not have access to any files outside of the Auto-GPT workspace directory.\nBefore v0.4.3, the `execute_python_code` command (introduced in v0.4.1) does not sanitize the `basename` arg before writing LLM-supplied code to a file with an LLM-supplied name. This allows for a path traversal attack that can overwrite any .py file outside the workspace directory by specifying a `basename` such as `../../../main.py`. This can further be abused to achieve arbitrary code execution on the host running Auto-GPT by e.g. overwriting autogpt/main.py which will be executed outside of the docker environment meant to sandbox custom python code execution the next time Auto-GPT is started. The issue has been patched in version 0.4.3. As a workaround, the risk introduced by this vulnerability can be remediated by running Auto-GPT in a virtual machine, or another environment in which damage to files or corruption of the program is not a critical problem.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Python code execution sandbox escape in non-docker version in Auto-GPT","id":"CVE-2023-37274","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2023"},"n_packages":0,"n_references":2,"next":{"headline":"System logs spoofable in Auto-GPT via ANSI control sequences","id":"CVE-2023-37275"},"packages":[],"prev":{"headline":"Docker escape in Auto-GPT when running from docker-compose.yml included in git repo","id":"CVE-2023-37273"},"products":["Auto-GPT"],"published":"2023-07-13","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":"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"}],"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":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-10-30","vendors":["Significant-Gravitas"]},"summary":"Path traversal in Auto-GPT allows overwriting host files to escape sandbox and execute arbitrary code on the host system.","url":"https://insights.sbomify.com/CVE-2023-37274/"}