Incident report

Agentic Coding CLI Confirmation Bypass via Piped Shell Command Parsing

CVE-2026-24887 (published February 3, 2026) documented a command-validation flaw in Claude Code where malformed or piped shell invocations (`sed`/`echo` pipelines) bypassed interactive confirmation prompts. Because the CLI's command classifier evaluated only portions of compound pipelines as benign read-only utilities, chained write or execution segments ran without surfacing a human approval gate. Prompt injections embedded in repository issues or documentation could exploit the parser discrepancy to alter files outside expected boundaries. Anthropic patched compound shell pipeline parsing to prompt on unverified command chains.

Incident record

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

Inspect in Interactive Incidents Hub

Defensive lesson

Parse every command segment in piped and chained shell invocations with a full POSIX AST parser rather than prefix matching.

Referenced techniques