Incident report
Coding CLI Malicious Nested Bare Git Repository core.fsmonitor Auto-Execution
CVE-2026-45033 (CVSS 7.8, published May 11, 2026) exposed arbitrary command execution in GitHub Copilot CLI versions prior to `1.0.43`. When the coding agent traversed a workspace containing a crafted nested bare Git repository and invoked routine read-only commands such as `git status` or `git diff`, Git automatically honored repository-local `core.fsmonitor` or hook settings inside the nested folder. Attackers planting hidden bare Git configs inside pull requests or archives achieved code execution simply by having a developer inspect the repo with the CLI agent. Version `1.0.43` hardened Git invocation flags to neutralize untrusted repository configs.
Incident record
- Reported
- Severity
- High
- Vector
- Tool/MCP Abuse
- Affected system type
- Terminal Agentic Coding CLIs
- Reference
CVE-2026-45033- Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2026-45033
Defensive lesson
Invoke Git from coding agents with safe-directory restrictions and explicit config overrides (`-c core.fsmonitor=false -c core.hooksPath=/dev/null`).
Referenced techniques
- User Execution: Unsafe AI Artifacts AML.T0011.000
- Command and Scripting Interpreter AML.T0050
- AI Agent Tool Invocation AML.T0053
- Machine Compromise: Local AI Agent AML.T0112.000
- Event Triggered Execution AML.T0142