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
Defensive takeaway
Disallow shell metacharacters and subshell substitutions inside auto-approved command patterns and execute allowed tools with shell=False.
Mapped AI security techniques
- Command and Scripting Interpreter AML.T0050
- LLM Prompt Injection: Indirect AML.T0051.001
- AI Agent Tool Invocation AML.T0053
- LLM Prompt Obfuscation AML.T0068
- Generate Malicious Commands AML.T0102
Mapped defensive controls
Source citation records
- NVD Record CVE-2025-54795: Claude Code Command Injection Allowlist Bypass · NIST National Vulnerability Database (NVD) ·