GitHub Copilot CLI: Nested Bare Repository Can Execute Arbitrary Commands via core.fsmonitor
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
GitHub Copilot CLI brings AI-powered coding assistance directly to your command line. Prior to 1.0.43, a security vulnerability has been identified in GitHub Copilot CLI where a malicious bare git repository nested inside a project directory can achieve arbitrary code execution when the agent performs git operations. By exploiting git's automatic bare repository discovery during directory traversal, an attacker can set core.fsmonitor or other executable config keys to run arbitrary commands without user awareness or approval. The vulnerability arises because git's core.fsmonitor config key (and 15+ similar keys such as core.hookspath, diff.external, merge.tool, etc.) can specify arbitrary shell commands that git will execute as part of normal operations like status, diff, or rev-parse. This vulnerability is fixed in 1.0.43.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| GitHub | copilot-cli | before 1.0.43 | 1.0.43 | Patch available | CNA |
| — | @github/copilot (npm) | before 1.0.43 | 1.0.43 | Patch available | GHSA-9ccr-r5hg-74gf |
- copilot-cli VendorGitHub Affected before 1.0.43 Fixed in 1.0.43 Patch available CNA
- @github/copilot (npm) Vendor— Affected before 1.0.43 Fixed in 1.0.43 Patch available GHSA-9ccr-r5hg-74gf
Remediation
- Fix · CNA copilot-cli (github) Fixed in 1.0.43
- Fix · GHSA-9ccr-r5hg-74gf @github/copilot (npm) Fixed in 1.0.43 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-45033
- 2026-10-03 Alias added: GHSA-9ccr-r5hg-74gf
References
Sources
- CVE-2026-45033 · CVE Program
- CVE-2026-45033 · NVD
- FIRST EPSS
- GHSA-9ccr-r5hg-74gf · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences