# CVE-2026-134465: mcp-server-git: nested gitdir file bypasses --repository restriction

- Severity: Medium 5.8 (CVSS:4.0, scored by Anthropic) `CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/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.41%, higher than 37% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-23T16:00:22.038Z
- Modified: 2026-11-24T17:18:16.763Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Anthropic mcp-server-git: before 2026.10.28

## References

- <https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-w766-5x43-whvw> (exploit, vendor-advisory)

## Sources

- CVE List: [CVE-2026-134465](https://www.cve.org/CVERecord?id=CVE-2026-134465), CVE Terms of Use, modified 2026-11-24
- NVD: [CVE-2026-134465](https://nvd.nist.gov/vuln/detail/CVE-2026-134465), Public domain, modified 2026-11-24

---

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