HighVulnerability
CVE-2026-45033: GitHub Copilot CLI code execution via nested malicious bare git repository
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-45033
- Published
- Record updated
- Affected
- @github/copilot <= 1.0.42
- Fixed in
- 1.0.43
- released May 6, 2026, 7 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.4%
Summary
A flaw in GitHub Copilot CLI before 1.0.43 allows arbitrary code execution when the agent runs git operations inside a project containing a malicious nested bare git repository. Git's automatic bare repository discovery during directory traversal lets an attacker set core.fsmonitor or other executable config keys, such as core.hookspath, diff.external and merge.tool, which git runs during status, diff or rev-parse without user awareness or approval.
Mitigation
Fixed in 1.0.43.
Topics
Related items
- HighCVE-2026-81962: Azure Machine Learning information disclosure through incorrect authorizationSame vendor · NVD/CVE Database
- CriticalCVE-2026-50691: M365 Copilot improper authorization allows privilege elevation over networkSame vendor · NVD/CVE Database
- CriticalCVE-2026-118285: Azure Machine Learning server-side request forgery allows privilege elevationSame vendor · NVD/CVE Database
- InfoCVE-2026-119990 Azure OpenAI Elevation of Privilege VulnerabilitySame vendor · MSRC Security Update Guide
- MediumCVE-2026-83953 GitHub Copilot for Jetbrains Information Disclosure VulnerabilitySame vendor · MSRC Security Update Guide