Documented Incident · INC-2025-54795 · High severity

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 dossier metadata

Case ID
INC-2025-54795
Classification
Incident
Date
Severity
High
Sector
Software Development & AI Tooling
Attack vector
Tool/MCP Abuse
System type
Terminal Agentic Coding CLIs
CVE / reference
CVE-2025-54795
Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2025-54795

Inspect INC-2025-54795 in Interactive Incidents & Cases Hub

Defensive takeaway

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

Mapped AI security techniques

Mapped defensive controls

Source citation records