# CVE-2026-45033: GitHub Copilot CLI: Nested Bare Repository Can Execute Arbitrary Commands via core.fsmonitor

- Severity: High 8.5 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-11T16:16:06.000Z
- Modified: 2026-10-26T17:10:03.270Z
- Also known as: GHSA-9ccr-r5hg-74gf
- Weaknesses: CWE-696
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- github copilot-cli: < 1.0.43; before 1.0.43
- @github/copilot (npm): before 1.0.43

## Every score

- GitHub_M: CVSS:4.0 8.5 High `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`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/github/copilot-cli/security/advisories/GHSA-9ccr-r5hg-74gf> (exploit, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-45033> (advisory)
- <https://github.com/github/copilot-cli> (package)

## Sources

- CVE List: [CVE-2026-45033](https://www.cve.org/CVERecord?id=CVE-2026-45033), CVE Terms of Use, modified 2026-05-13
- GitHub Advisory Database: [GHSA-9ccr-r5hg-74gf](https://github.com/advisories/GHSA-9ccr-r5hg-74gf), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-45033](https://nvd.nist.gov/vuln/detail/CVE-2026-45033), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-45033 · Whole record: https://cve.day/CVE-2026-45033.json · Rebuilt by cve.day 2026-11-25T22:59:21.601Z
