CVE-2026-134465
JSON

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 packageVersionsReported by
Anthropic mcp-server-gitbefore 2026.10.28CVE List

Classification

CWE-22

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-134465 changed 2026-11-24CVE Terms of Use
NVDCVE-2026-134465 changed 2026-11-24Public domain