GitHub Copilot CLI: nested bare git repository can run commands via core.fsmonitor (CVE-2026-45033)
Summary
Per the vendor advisory, a malicious bare git repository nested inside a project directory can achieve arbitrary code execution when GitHub Copilot CLI performs a git operation that traverses into or through that directory. The advisory lists @github/copilot 1.0.42 and earlier as vulnerable and 1.0.43 as patched. The GitHub advisory database entry lists severity high with CVSS 7.8, while the copilot-cli advisory page labels it Moderate.
Severity
Timeline
The copilot-cli advisory page shows the advisory as published.
The advisory was published in the GitHub advisory database. (per the vendor advisory)
How it happened
Per the vendor advisory, git can discover a bare repository automatically while traversing directories, and it then applies that repository's config. Keys such as core.fsmonitor can specify commands that git runs during operations like status, diff or rev-parse. The advisory says the trigger is a git operation that traverses into or through the directory holding the malicious bare repository. The fix sets safe.bareRepository=explicit through git's environment variable config mechanism. This stops git from automatically discovering and using bare repositories during directory traversal, so only explicitly allowlisted bare repositories are used.
How to check your app
- 1.0.42 and earlier: Check whether the installed @github/copilot npm package is version 1.0.42 or earlier.
Sources
Corrections and updates
Cite this entry
- Title
- GitHub Copilot CLI: nested bare git repository can run commands via core.fsmonitor (CVE-2026-45033)
- Added
- Nov 15, 2026
- URL
- https://vibeincidents.com/incidents/copilot-cve-2026-45033/
- Suggested citation
VibeIncidents. "GitHub Copilot CLI: nested bare git repository can run commands via core.fsmonitor (CVE-2026-45033)." Nov 15, 2026. https://vibeincidents.com/incidents/copilot-cve-2026-45033/