{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2023-37274","published":"2023-07-13T23:15:10.820000Z","last_modified":"2026-06-17T06:07:51.993000Z","status":"Analyzed","cvss":{"version":"3.1","score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-94"],"cpes":[{"criteria":"cpe:2.3:a:agpt:autogpt_classic:*:*:*:*:*:*:*:*","part":"a","vendor":"agpt","product":"autogpt_classic","version_end_excluding":"0.4.3"}],"cpes_truncated":false,"vendors":["agpt"],"products":["agpt/autogpt_classic"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"total"},"epss":{"score":0.00475,"percentile":0.33399,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"high","priority_score":47,"links":{"html_es":"/es/cve/CVE-2023-37274/","html_en":"/en/cve/CVE-2023-37274/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-37274","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-37274"},"untrusted":{"vendor_name":"Agpt","product_name":"Autogpt Classic","desc_en":"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.","affected":[{"untrusted_vendor":"Significant-Gravitas","untrusted_product":"Auto-GPT","versions":[]}],"references":[{"url":"https://github.com/Significant-Gravitas/Auto-GPT/pull/4756","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/Significant-Gravitas/Auto-GPT/security/advisories/GHSA-5h38-mgp9-rj5f","tags":["Patch","Third Party Advisory"]}]}}