Documented Incident · INC-2026-24887 · High severity
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 dossier metadata
- Case ID
INC-2026-24887- Classification
- Incident
- Date
- Severity
- High
- Sector
- Software Development & AI Tooling
- Attack vector
- Tool/MCP Abuse
- System type
- Terminal Agentic Coding CLIs
- CVE / reference
CVE-2026-24887- Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2026-24887
Defensive takeaway
Parse every command segment in piped and chained shell invocations with a full POSIX AST parser rather than prefix matching.
Mapped AI security techniques
- Command and Scripting Interpreter AML.T0050
- 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-2026-24887: Claude Code Shell Confirmation Prompt Bypass · NIST National Vulnerability Database (NVD) ·