Home / Significant-Gravitas / Auto-GPT / CVE-2023-37274
CVE-2023-37274: is it exploited, and which versions of Significant-Gravitas Auto-GPT are affected and fixed?
CVE-2023-37274 is a code injection (remote code execution) vulnerability in Significant-Gravitas Auto-GPT. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:38 UTC). Affected: Auto-GPT < 0.4.3 (CVE record by GitHub_M). Fixed in 0.4.3 (NVD). Severity: High (7.6, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:38 UTC, CVE record November 19, 2026, 07:12 UTC and NVD November 19, 2026, 07:37 UTC.
What is CVE-2023-37274?
Python code execution sandbox escape in non-docker version in Auto-GPT
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. Before 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.
From the CVE record by GitHub_M, last updated October 30, 2024, 15:53 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Significant-Gravitas | Auto-GPT | < 0.4.3 |
As the CVE record by GitHub_M states it, last updated October 30, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| agpt | autogpt classic | before 0.4.3 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 06:07 UTC.
How severe is CVE-2023-37274?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.6 | CVSS 3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H | GitHub_M |
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-37274 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, October 30, 2024)
- EPSS
- 0.35% probability of exploitation activity in the next 30 days, percentile 30.8 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-94 Improper Control of Generation of Code
Where are the vendor advisories and references?
- https://github.com/Significant-Gravitas/Auto-GPT/security/advisories/GHSA-5h38-mgp9-rj5f x_refsource_CONFIRM
- https://github.com/Significant-Gravitas/Auto-GPT/pull/4756 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- June 29, 2023
- Published
- July 13, 2023, 22:33 UTC
- CVE record updated
- October 30, 2024, 15:53 UTC by GitHub_M
- NVD
- Analyzed, last modified June 17, 2026, 06:07 UTC
- Last checked
- CVE list November 19, 2026, 07:12 UTC; NVD November 19, 2026, 07:37 UTC; KEV December 3, 2026, 13:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Auto-GPT?
- Jul 13, 2023CVE-2023-37275 Significant-Gravitas Auto-GPT: log injection
- Jul 13, 2023CVE-2023-37273 Significant-Gravitas Auto-GPT: code injection (remote code execution)
Questions about CVE-2023-37274
Is CVE-2023-37274 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:38 UTC. FIRST's EPSS gives it a 0.35% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Significant-Gravitas Auto-GPT are affected by CVE-2023-37274?
Auto-GPT < 0.4.3, per the CVE record by GitHub_M. The tables above give every range the sources list.
Which version fixes CVE-2023-37274?
0.4.3, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-37274?
High (7.6, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2023-37274?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.