Skip to content
HighVulnerability

CVE-2026-45033: GitHub Copilot CLI code execution via nested malicious bare git repository

Identifier
CVE-2026-45033
Published
Record updated
View JSON
Affected
  • @github/copilot <= 1.0.42
Fixed in
1.0.43
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.