Disclosed weakness · no CVE recorded

git: fake Git dir in a clone can set the --repository root to any path

Model Context Protocol maintainers · mcp-server-git

First documented disclosure · Review checkpoint

Summary

A fake Git directory in a clone reportedly changes the root used for --repository confinement.

Severity and exploitation evidence

High · 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

A fake Git directory in a clone reportedly changes the root used for --repository confinement.

Conditions required

The disclosed input is a clone containing a fake Git directory. The public record does not give the full path-selection sequence or privilege requirements.

Potential impact

The intended repository boundary can be redirected according to the maintainer; specific subsequent reads or writes are not established publicly.

Affected versions and configurations

< 2026.12.5 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-jc92-w368-24f3; no published CVE alias in the reviewed inventory. The complete public advisory was reviewed, but it exposes only a summary, CWE, severity and version bounds; technical details, reproducer and proposed fix were supplied in a comment unavailable in the public record. Unpublished prerequisites and mechanisms remain unknown. 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