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

Inspect INC-2024-6091 in Interactive Incidents & Cases Hub

Defensive takeaway

Replace fragile shell command denylists with strict argument-array allowlists (shell=False) inside ephemeral rootless containers.

Mapped AI security techniques

Mapped defensive controls

Source citation records