CVE-2026-134465
MCP Git nested gitdir pointers bypassed repository confinement
Model Context Protocol · mcp-server-git
First documented disclosure · Review checkpoint
Summary
A caller able to place a Git pointer inside the permitted tree could access a different repository reachable by the server.
Severity and exploitation evidence
Medium · 5.8/10 · CVSS 4.0. Severity source.
Exploitation not established: Reviewed public sources establish the weakness or a controlled demonstration; malicious exploitation against users is not established.
Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.
How the weakness works
The original check validated the supplied path, while GitPython followed a nested .git file to an outside repository.
Conditions required
Tool invocation, ability to place the pointer file in the permitted tree, knowledge of the outside repository path, and server filesystem access to that repository.
Potential impact
Read committed content and create branches in the outside repository; the original controlled test does not establish arbitrary host writes or command execution.
Affected versions and configurations
Before 2026.10.28.
Fix and mitigation status
2026.10.28 corrects this original gitdir case. The maintainer identifies 2026.11.11 for separately reported incomplete-confinement cases, with a Windows-junction limitation.
Practical next steps
Use a current maintained release containing the later confinement corrections, restrict tool access and writes inside repositories, and do not rely on --repository against clients that can create Windows junctions until that limitation is specifically corrected.
Operating lesson
Validate the repository Git actually opens, including indirect metadata paths.
Evidence and limits
Original GHSA published October 28 at 21:13Z; the fixed wheel was uploaded at 21:06Z the same day. The downloaded wheel hash matches PyPI metadata. Static inspection verifies open_repo calls validate_opened_repo for the working tree, git directory and common directory, with explicit handling of legitimate linked worktrees. CNA publication 2026-11-23 is distinct from the earliest reviewed public source where an earlier date is shown. No exploit was executed during this review. Newly reviewed November 11 advisory GHSA-q74p-4wrc-q7w6 reports that the October 28 correction leaves alternate-object-store and linked-worktree identity bypasses. Its 2026.11.11 fix is a maintainer assertion here; it explicitly leaves Windows junction handling for follow-up. The original disclosure and original issue-specific correction dates are unchanged. The November 24 metadata refresh itself adds no new mechanism.
Sources
- Anthropic CVE authority record
Primary source ·
- MCP Git original advisory
Primary source ·
- Fixed package metadata and hashes
Primary source ·
- Later incomplete-confinement advisory
Primary source ·