Incident report
Coding CLI Read-Only Shell Filter Bypass via Bash Parameter Expansion
CVE-2026-29783 (published March 6, 2026) disclosed a shell-tool policy bypass in GitHub Copilot CLI (`< 0.0.422`) allowing arbitrary command execution past read-only safety checks. Crafted bash parameter expansion patterns slipped through the CLI's static command parser, which classified the command as safe for automatic execution without user confirmation. Indirect prompt injections in untrusted repositories could leverage these expansion primitives to execute malicious payloads silently. Maintainers updated shell AST parsing and tightened confirmation triggers in v0.0.422.
Incident record
- Reported
- Severity
- High
- Vector
- Tool/MCP Abuse
- Affected system type
- Terminal Agentic Coding CLIs
- Reference
CVE-2026-29783- Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2026-29783
Defensive lesson
Do not auto-approve shell commands containing complex bash expansions, command substitutions, or variable indirection; isolate agent shells in sandboxes.
Referenced techniques
- Command and Scripting Interpreter AML.T0050
- AI Agent Tool Invocation AML.T0053
- LLM Prompt Obfuscation AML.T0068
- Generate Malicious Commands AML.T0102