CVE-2026-134465
5.8medium
mcp-server-git: nested gitdir file bypasses --repository restriction
- Severity
- 5.8medium CVSS:4.0 by Anthropic
- Exploit likelihood
- 0.41% (higher than 37% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Anthropic
Description
In mcp-server-git before 2026.10.28, the --repository restriction can be bypassed through a nested directory that contains a .git file with a gitdir pointer to a repository outside the allowed path. A caller who can invoke the server's tools, place such a file in the allowed tree, and knows the outside repository's path can read committed content from that repository and create branches in it.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Anthropic mcp-server-git | before 2026.10.28 | CVE List |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
References
| https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-w766-5x43-whvw | exploit, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-134465 changed 2026-11-24 | CVE Terms of Use |
| NVD | CVE-2026-134465 changed 2026-11-24 | Public domain |