Disclosed weakness · no CVE recorded

Hard-linked Git reflog escapes repository confinement

Model Context Protocol maintainers · mcp-server-git

First documented disclosure · Review checkpoint

Summary

Git appends a commit message through a reflog hard link that aliases a writable file outside the configured repository.

Severity and exploitation evidence

High · 7.0/10 · CVSS 3.1. 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

Git appends a commit message through a reflog hard link that aliases a writable file outside the configured repository.

Conditions required

An import preserves a hard link at .git/logs/HEAD; a client stages content and commits. The execution demonstration additionally uses Python 3.11.2 archive extraction, a deterministic client adopting an archive-supplied prompt candidate, and subsequent Bash startup.

Potential impact

The controlled test appended outside the repository and executed a canary at later shell startup. General model behavior and other MCP hosts were not tested; no privilege escalation beyond the server account is shown.

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-m7x8-g56j-mf4q; 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. The source’s untested-patch statement describes its historical experiment; the current advisory field and new release identify the patched build.

Sources