{"id":"CVE-2026-45033","published":"2026-05-13T15:45:26Z","modified":"2026-05-13T18:38:57Z","title":"GitHub Copilot CLI: Nested Bare Repository Can Execute Arbitrary Commands via core.fsmonitor","vendor":"GitHub","product":"copilot-cli","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.5,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0035,"percentile":0.29403,"provenance":"source"},"cwes":[{"id":"CWE-696","name":"Incorrect Behavior Order"}],"references":[{"url":"https://github.com/github/copilot-cli/security/advisories/GHSA-9ccr-r5hg-74gf","tags":["x_refsource_CONFIRM"]}],"priority":{"score":16.8,"factors":[{"name":"EPSS percentile","points":5.88},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.95}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-08-04","earliestUrl":"https://github.com/grassplatypus/cve-2026-45033-class","repos":[{"name":"grassplatypus/cve-2026-45033-class","url":"https://github.com/grassplatypus/cve-2026-45033-class","stars":0,"created":"2026-08-04"}]},"first":{"date":"2026-08-04","source":"PoC-in-GitHub","url":"https://github.com/grassplatypus/cve-2026-45033-class"},"provenance":"source"},"vendorSlug":"github","affectedVersions":[{"vendor":"github","product":"copilot-cli","versions":["< 1.0.43"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-05-13T18:38:29.088756Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@github/copilot","vulnerableRanges":["<1.0.43"],"patched":["1.0.43"],"from":["GHSA-9ccr-r5hg-74gf"],"provenance":"source"}],"summary":{"text":"GitHub Copilot CLI (copilot-cli) contains a flaw in which a malicious bare git repository nested inside a project directory is automatically discovered by git during directory traversal, allowing its config keys, such as core.fsmonitor, to run as commands when the agent performs git operations. An attacker who can place such a nested repository in a project directory, with local access and low privileges, can execute arbitrary commands without user interaction or approval.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:44Z"},"euvd":{"id":"EUVD-2026-30055","exploited":false,"provenance":"source"}}