/

CVE-2026-133448

Severity:

HIGH RISK

(7.1)

CLI Command Injection (CWE-77) in AutoGPT Agent Workflows

CVE-2026-133448

Received

Vulnerability type

Category:

CLI Command Execution and File Disclosure

CWE:

CWE-73, CWE-77

Impact:

Sensitive Information Disclosure and Unauthorized CLI Actions

Severity:

HIGH RISK

(7.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

In affected AutoGPT workflows, chat or prompt text can be interpreted by the Claude Code CLI as commands or file references before AutoGPT's tool allow-list and PreToolUse hooks apply. Depending on the user's access and the executor's permissions, this may expose host files to the model or allow CLI actions that alter the session or settings.

Affected context

The issue affects AutoGPT versions 0.7.1 through 0.8.4 in the AutoPilot Claude Agent SDK path and the graph orchestrator's extended-thinking SDK mode. It becomes relevant when chat or prompt content—including content carried into turn history from tool output—is passed to the Claude Code CLI, where command and file-reference syntax is processed outside AutoGPT's tool controls.

Exploit preconditions

  • Attack surface: AutoPilot conversations or graph workflows that invoke the affected Claude Code CLI modes
  • Required access: A signed-in user, a member of a linked chat channel, a graph author, or an indirect means of supplying content through tool output
  • Trigger point: Processing of messages or turn-history content by the Claude Code CLI
  • Why exploitation is possible: CLI command and file-reference syntax is interpreted before the AutoGPT tool allow-list and PreToolUse hooks can restrict it; file access is limited by the copilot executor process's permissions

Why this happens

The integration passes user- or tool-influenced text to a CLI that preprocesses special command and path-reference syntax. Because this interpretation occurs outside the application's tool authorization and hook controls, the controls do not reliably mediate those actions. This is consistent with CWE-77: Improper Neutralization of Special Elements Used in a Command. The file-reference behavior also relates to CWE-73: External Control of File Name or Path, as supplied references can direct file reads or directory listings.

Potential impact

  • The CLI could read files or list directories accessible to the copilot executor, with results sent to the model provider.
  • Sensitive file contents could be repeated in model replies or otherwise exposed to users of the workflow.
  • CLI actions could compact or clear a session, switch the selected model, or modify CLI settings.
  • The executor's permissions could determine the scope of accessible data and settings.

General mitigation guidance

Defensive designs generally keep untrusted text separate from CLI control syntax and ensure every action is mediated by application policy.

  • Use structured SDK interfaces or constrained input formats instead of passing raw conversation text to a command-interpreting CLI.
  • Apply authorization and policy checks to commands and file access at the point of execution, before any CLI-side preprocessing.
  • Treat user messages, linked-channel content, and tool output carried into turn history as untrusted input.
  • Restrict the executor's filesystem access and privileges to the minimum necessary, and limit sensitive data available to the model.
  • Disable or constrain CLI features that are not required for the workflow.

How teams detect issues like this

  • Review integrations that pass chat, prompt, or tool-output text to command-line agents or SDKs that interpret special syntax.
  • Use static analysis and code review to identify raw text passed to CLI entry points without explicit command and path mediation.
  • Test whether authorization hooks run before all CLI command and file-reference handling paths.
  • Enforce policies that restrict executor filesystem access, CLI capabilities, and modification of agent settings.
  • Monitor for unexpected file reads, directory listings, session-control actions, model changes, or settings-file modifications.

Sources

SourceLink
github.comgithub.com/Significant-Gravitas/AutoGPT/commit/4a75ca0f8ceaf6e0b9c67337e1468be522f2459e
github.comgithub.com/Significant-Gravitas/AutoGPT/commit/9caf6447dba0c2368e523676252dee4588fd24e4
github.comgithub.com/Significant-Gravitas/AutoGPT/security/advisories/GHSA-hf7q-6hwp-f6v2

Frequently asked

questions

Depending on deployment, signed-in users, members of linked chat channels, graph authors, or content indirectly introduced through tool output may supply text that reaches the affected CLI paths.

Not necessarily. File reads and other actions are bounded by the copilot executor process's permissions and by the CLI capabilities available in the workflow.

Avoid passing raw, untrusted conversation text to a CLI that interprets commands or file references. Mediate each permitted action through application-level authorization before execution.

Treat conversation and tool output as untrusted, test policy enforcement across every execution path, and limit the executor's filesystem access and privileges.

Find out what's already
exploitable in your codebase.