# CVE-2026-29783: GitHub Copilot CLI allows for dangerous shell expansion patterns that enable arbitrary command execution

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: Active; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.65% (percentile 46, 2026-11-26)
- **CWE:** CWE-78
- **Aliases:** GHSA-g8r9-g2v8-jv6f
- **Published:** 2026-03-06T16:39:27.424Z
- **Modified:** 2026-11-03T23:17:41.810Z

## Who should check

- Projects that depend on npm package @github/copilot (\< 0.0.423)
- Anyone running github copilot-cli \<= 0.0.422

## Description

The shell tool within GitHub Copilot CLI versions prior to and including 0.0.422 can allow arbitrary code execution through crafted bash parameter expansion patterns. An attacker who can influence the commands executed by the agent (e.g., via prompt injection through repository files, MCP server responses, or user instructions) can exploit bash parameter transformation operators to execute hidden commands, bypassing the safety assessment that classifies commands as "read-only." This has been patched in version 0.0.423. 

The vulnerability stems from how the CLI's shell safety assessment evaluates commands before execution. The safety layer parses and classifies shell commands as either read-only (safe) or write-capable (requires user approval). However, several bash parameter expansion features can embed executable code within arguments to otherwise read-only commands, causing them to appear safe while actually performing arbitrary operations.

The specific dangerous patterns are ${var@P}, ${var=value} / ${var:=value}, ${!var}, and nested $(cmd) or \<(cmd) inside ${...} expansions. An attacker who can influence command text sent to the shell tool - for example, through prompt injection via malicious repository content (README files, code comments, issue bodies), compromised or malicious MCP server responses, or crafted user instructions containing obfuscated commands - could achieve arbitrary code execution on the user's workstation. This is possible even in permission modes that require user approval for write operations, since the commands can appear to use only read-only utilities to ultimately trigger write operations. Successful exploitation could lead to data exfiltration, file modification, or further system compromise.

## Affected and fixed versions

- npm `@github/copilot`: affected \< 0.0.423; fixed 0.0.423 (osv)
- github copilot-cli: \<= 0.0.422 (cvelist)

## Mitigation

- Upgrade @github/copilot to 0.0.423 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-29783. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-29783.md
Affected: @github/copilot < 0.0.423
Fixed in: 0.0.423

Steps:
1. Search this machine and project for @github/copilot (npm), github copilot-cli: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-29783 being exploited?

There is no confirmed exploitation: CVE-2026-29783 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.65% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-29783?

High: CVSS 7.5 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-29783?

@github/copilot \< 0.0.423.

### Is there a fix for CVE-2026-29783?

Yes. Fixed in 0.0.423. Upgrade @github/copilot to 0.0.423 or later.

### How do I check if I'm affected by CVE-2026-29783?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/github/copilot-cli/security/advisories/GHSA-g8r9-g2v8-jv6f>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-29783>
- other: <https://github.com/github/copilot-cli/releases/tag/v0.0.423>
- other: <https://github.com/github/copilot-cli>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-29783>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-g8r9-g2v8-jv6f> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-29783> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-29783>
