CVE-2025-68144

MCP Git ref arguments become file-overwriting CLI options

Model Context Protocol · mcp-server-git

First documented disclosure · Review checkpoint

Summary

git_diff and git_checkout forwarded untrusted option-like ref arguments to Git.

Severity and exploitation evidence

Medium · 6.3/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.

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_diff and git_checkout forwarded untrusted option-like ref arguments to Git.

Conditions required

A caller can influence tool arguments on an affected server; writes are limited by server account permissions.

Potential impact

File overwrite through injected Git command-line options.

Affected versions and configurations

Before 2025.12.18 according to the current maintainer GHSA; the CNA instead names the earlier 2025.12.17 boundary.

Fix and mitigation status

2025.12.18 according to the current maintainer GHSA; CNA prose still names 2025.12.17. Released artifact inclusion was not independently verified.

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

Validate argument roles before handing values to command-line parsers.

Evidence and limits

Historical coverage gap. The complete original GHSA and CNA were reviewed; fixed versions are maintainer assertions, not newly tested wheels. This correction does not establish that later repository-metadata bypasses are resolved. No exploit was executed during this review.

Sources