Incident report

Agentic Coding CLI Allowlist Command Injection via Shell Argument Quoting

CVE-2025-54795 (published August 5, 2025, disclosed by Cymulate alongside CVE-2025-54794) revealed a command injection flaw in Claude Code's pre-approved command allowlist parser. By embedding shell command substitutions inside arguments passed to allowlisted utilities like `echo`, an indirect prompt injection could execute arbitrary host commands without triggering the user approval dialog. The vulnerability demonstrated how subtle quoting semantics defeat string-based allowlists in agentic CLIs. Anthropic hardened command-substitution detection and shell tokenization before auto-approval.

Incident record

Reported
Severity
High
Vector
Tool/MCP Abuse
Affected system type
Terminal Agentic Coding CLIs
Reference
CVE-2025-54795
Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2025-54795

Inspect in Interactive Incidents Hub

Defensive lesson

Disallow shell metacharacters and subshell substitutions inside auto-approved command patterns and execute allowed tools with shell=False.

Referenced techniques