Read the docs

Path traversal in Anthropic mcp-server-git bypasses --repository restriction

Priority MEDIUM 59CWE-22Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
Low
Attack requirements
Present
Impact type
—
Confidentiality · integrity · availability
High · Low · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

In mcp-server-git from 0 before 2026.10.28, the --repository restriction can be bypassed. A nested directory containing a .git file with a gitdir pointer to a repository outside the allowed path lets a caller read committed content from that repository and create branches in it. An attacker needs low privileges and the ability to invoke the server's tools, plus the path of the outside repository, and must be able to place the file in the allowed tree (CWE-22).

Written with Claude Haiku 5.5 from the sources below · 2026-11-24

Description from the CNA

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00415 27th percentileScored 2026-11-30
Fix Fixed mcp-server-git (Anthropic): 2026.10.28

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
anthropicsmcp-server-gitbefore 2026.10.282026.10.28Patch availableCNA
  • mcp-server-git Vendoranthropics Affected before 2026.10.28 Fixed in 2026.10.28 Patch available CNA

Remediation

Upgrade Anthropic mcp-server-git to version 2026.10.28 or later, which fixes the issue.

Written with Claude Haiku 5.5 from the sources below · 2026-11-24

  • Fix · CNA mcp-server-git (Anthropic) Fixed in 2026.10.28

Timeline

  1. 2026-11-23 Threatist record created from CVE-2026-134465
  2. 2026-11-23 Alias added: GHSA-7f33-9hc8-6cr8
  3. 2026-11-24 CISA SSVC decision points changed

References

  • TI-2026-79288 Out-of-bounds write in Google Brotli decoder allows memory corruption KEVCVSS 4.0CRITICAL 9.2
  • TI-2026-00421 MCP TypeScript SDK UriTemplate Exploded Array Pattern ReDoS CVSS 4.0HIGH 8.7
  • TI-2025-40558 Claude Code Command Validation Bypass Allows Arbitrary Code Execution CVSS 4.0HIGH 8.7
  • TI-2025-36683 Claude Code vulnerable to arbitrary code execution caused by maliciously configured git email CVSS 4.0HIGH 8.7
  • TI-2025-24240 Anthropic Slack MCP Server Data Exfiltration via Link Unfurling CVSS 4.0CRITICAL 9.3
  • TI-2025-32918 Claude Code IDE extensions allow websocket connections from arbitrary origins CVSS 4.0HIGH 8.8
See all 48 →

Sources