Disclosed weakness · no CVE recorded

mcp-server-git: a repository's config-based hooks (Git 2.54+) run a program on git_status despite the hook hardening

Model Context Protocol maintainers · mcp-server-git

First documented disclosure · Review checkpoint

Summary

The hardening disables hook scripts but misses configuration-defined hooks supported by Git 2.54 and later.

Severity and exploitation evidence

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

The hardening disables hook scripts but misses configuration-defined hooks supported by Git 2.54 and later.

Conditions required

A repository carrying its own .git/config reaches a tool such as git_status on Git 2.54+. The author tested Git 2.56.1 on Ubuntu with package 2026.11.27; normal cloning does not transport local configuration.

Potential impact

The controlled test ran repository-selected programs as the server user. Older Git ignores these hook keys; not all tools or operating systems were tested.

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-j4hr-p3xr-v32q; 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