CVE-2026-27735
MCP Git stages files outside the repository
Model Context Protocol · mcp-server-git
First documented disclosure · Review checkpoint
Summary
git_add passed relative traversal paths to GitPython index.add without working-tree boundary enforcement.
Severity and exploitation evidence
Medium · 6.4/10 · CVSS 4.0. Severity source.
Exploitation not established: Reviewed public sources establish the reported 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
git_add passed relative traversal paths to GitPython index.add without working-tree boundary enforcement.
Conditions required
A caller can invoke git_add on the server with an outside relative path, and the server account can read the target.
Potential impact
Outside file content can enter the index and later be disclosed through commit/push operations.
Affected versions and configurations
Before 2026.1.14.
Fix and mitigation status
2026.1.14.
Practical next steps
Apply the current maintained server release containing this correction, restrict tool access and avoid untrusted repository metadata. Later distinct Git-server advisories also require attention.
Operating lesson
The Git index is a data-exfiltration boundary, even before a push occurs.
Evidence and limits
Historical coverage gap. The complete original GHSA and CNA were reviewed; fixed versions are maintainer assertions, not newly tested wheels. Public PR 3164 merged January 4 with a concrete switch from GitPython index.add to the Git CLI boundary checks; its later February 25 GHSA date is coordinated advisory publication. No exploit was executed during this review.
Sources
- CVE authority record
Primary source ·
- Original MCP Git advisory
Primary source ·
- Public path-validation patch
Primary source ·