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

> CVE-2026-134465: mcp-server-git: nested gitdir file bypasses --repository restriction. CVSS 5.8 (CVSS 4.0).

Canonical: https://rewindex.com/cve/CVE-2026-134465
Last updated: 2026-11-24T17:18:16Z

- Published: 2026-11-23 16:00 UTC · Updated: 2026-11-24 17:18 UTC · Assigner: Anthropic
- CVSS: 5.8 (CVSS 4.0) · Severity: Medium
- EPSS: 0.41%, 38th percentile (scored 2026-12-01)
- CISA KEV: no
- CWE: CWE-22

## 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 vendors and products

- Anthropic: mcp-server-git

## Tracked companies

- [Anthropic](https://rewindex.com/company/anthropic.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2026-134465)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2026-134465)
- [https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-w766-5x43-whvw](https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-w766-5x43-whvw)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2026-134465 · Markdown: https://rewindex.com/cve/CVE-2026-134465.md · JSON: https://rewindex.com/api/v1/cves/CVE-2026-134465 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-12-01T23:20:39.889Z
