Disclosed weakness · no CVE recorded

mcp-server-git: with --repository, a concurrent rewrite of .git/config (core.worktree) after the opening check redirects the tool's git command outside the repository

Model Context Protocol maintainers · mcp-server-git

First documented disclosure · Review checkpoint

Summary

After validation, Git rereads a concurrently rewritten core.worktree value; its command can use an outside working tree.

Severity and exploitation evidence

Medium · numeric CVSS score not recorded. Severity source.

Exploitation not established: The public source establishes a reported weakness or controlled test, not malicious exploitation or identified victims. No product, model or proof of concept was executed in this review.

Exploitation evidence source

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

After validation, Git rereads a concurrently rewritten core.worktree value; its command can use an outside working tree.

Conditions required

A caller invokes a Git tool while another writer can repeatedly rewrite the configured repository’s .git/config, and the server can access a known outside path.

Potential impact

The controlled macOS test returned one outside tracked-file value, listed an outside filename, and created or removed one branch-tracked file. Arbitrary file reads or overwriting existing outside files were not demonstrated.

Affected versions and configurations

<= 2026.11.27 for mcp-server-git in the maintainer advisory.

Fix and mitigation status

2026.12.5 for mcp-server-git in the advisory and December 5 v2.7.0 release. This is an issue-specific patch claim.

Practical next steps

Update this package to the advisory’s patched version and retain the relevant repository, filesystem or network boundary controls.

Operating lesson

Validate the effective resource and side effects at the operation that uses it.

Evidence and limits

GHSA-74v6-p7q4-hj96; no published CVE alias in the reviewed inventory. The public technical report and its controlled-test limitations were reviewed; the reviewer did not reproduce it. Severity is attributed to the maintainer advisory; it does not establish exploitation. The original disclosure and release are both December 5; no earlier private report date is used.

Sources