Documented Incident · INC-2024-6091 · Critical severity
AutoGPT Autonomous Shell Agent Denylist Bypass via Crafted Command Syntax
CVE-2024-6091 exposed a shell command denylist bypass in AutoGPT's autonomous shell-execution tool (`execute_shell`), which attempted to block dangerous commands via naive string matching. Attackers or prompt-injected tasks could pass alternate quoting, subshell syntax, or path-qualified binaries that slipped past the blocklist and executed restricted OS commands on the agent host. Because AutoGPT runs multi-step tool loops with developer privileges, blocklist evasion yielded full host compromise. The fix and enduring lesson require eliminating fragile shell blocklists in favor of `shell=False` argument allowlists inside ephemeral containers.
Incident dossier metadata
- Case ID
INC-2024-6091- Classification
- Incident
- Date
- Severity
- Critical
- Sector
- Software Development & AI Tooling
- Attack vector
- Tool/MCP Abuse
- System type
- Autonomous Shell-Executing AI Agents
- CVE / reference
CVE-2024-6091- Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2024-6091
Defensive takeaway
Replace fragile shell command denylists with strict argument-array allowlists (shell=False) inside ephemeral rootless containers.
Mapped AI security techniques
- Command and Scripting Interpreter AML.T0050
- AI Agent Tool Invocation AML.T0053
- LLM Jailbreak AML.T0054
- LLM Prompt Obfuscation AML.T0068
- Generate Malicious Commands AML.T0102
Mapped defensive controls
Source citation records
- NVD Record CVE-2024-6091: AutoGPT Shell Command Denylist Bypass · NIST National Vulnerability Database (NVD) ·