HighVulnerabilityLLM-specific
CVE-2023-37274: Auto-GPT path traversal in execute_python_code via basename argument
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2023-37274
- Published
- Record updated
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.4%
Summary
CVE-2023-37274 affects Auto-GPT versions before v0.4.3, where the `execute_python_code` command (introduced in v0.4.1) does not sanitize the `basename` argument. An LLM-supplied name such as `../../../main.py` lets code write outside the workspace directory, overwriting files like `autogpt/main.py`, which then runs on the host outside the Docker sandbox at the next start.
Mitigation
The issue has been patched in version 0.4.3. As a workaround, run Auto-GPT in a virtual machine or another environment where damage to files or corruption of the program is not a critical problem.
Related items
- MediumCVE-2026-124588: huggingface finetrainers code injection via Library argumentSimilar attack · NVD/CVE Database
- MediumTaiwan-Based Hacker Used BOSSAI AI Agents to Steal Taipei Emergency Dispatch RecordsSimilar attack · The Hacker News
- HighCVE-2026-97677: IBM Langflow OSS arbitrary file write and read by authenticated flow authorsSimilar attack · NVD/CVE Database
- MediumRecent AI agent experiments reveal a risky future of machine 'teamwork' inside corporationsSimilar attack · CNBC Technology
- MediumClaude Code's “Don't Ask Again” File Exposes Passwords and Keys in 1,122 Public Copies on GitHubSimilar attack · The Hacker News