GitHub Copilot CLI shell expansion patterns allow arbitrary code execution (CVE-2026-29783)
Incident date
DisclosedMar 6, 2026 (GitHub advisory)
Added hereNov 15, 2:49 PM ET
Last verifiedNov 15, 2026
Summary
Per the vendor advisory, GitHub Copilot CLI versions up to 0.0.422 could allow arbitrary code execution through crafted bash parameter expansion patterns. The shell safety assessment could classify such commands as read-only, so they ran without user approval. The issue is fixed in version 0.0.423.
Severity
HIGH The GitHub advisory rates it High.
Timeline
GitHub Copilot CLI 0.0.423 was released with prompts for shell commands that use dangerous expansion or substitution.
Advisory GHSA-g8r9-g2v8-jv6f for CVE-2026-29783 was published. (per the vendor advisory)
How it happened
Per the vendor advisory, the CLI's shell safety assessment classifies commands as read-only or write-capable. Some bash parameter expansion features, such as the @P operator, can embed executable code in arguments to otherwise read-only commands. An attacker who can influence the commands the agent runs, for example through prompt injection, could use this to bypass the assessment and run hidden commands.
How to check your app
- 0.0.422 and earlier: Check whether the installed @github/copilot npm package is at or below 0.0.422.
- 0.0.422 and earlier: Review any shell commands the agent suggested that contain complex parameter expansion patterns.
Sources
Corrections and updates
Cite this entry
- Title
- GitHub Copilot CLI shell expansion patterns allow arbitrary code execution (CVE-2026-29783)
- Added
- Nov 15, 2026
- URL
- https://vibeincidents.com/incidents/copilot-cve-2026-29783/
- Suggested citation
VibeIncidents. "GitHub Copilot CLI shell expansion patterns allow arbitrary code execution (CVE-2026-29783)." Nov 15, 2026. https://vibeincidents.com/incidents/copilot-cve-2026-29783/