Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-53107— @cyanheads/git-mcp-server vulnerable to command injection in several tools

Quick assessment

Affected
cyanheads git-mcp-server
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Git MCP Server是Casey Hand个人开发者的一个MCP服务器。 Git MCP Server 2.1.5之前版本存在命令注入漏洞,该漏洞源于未清理输入参数导致命令注入,可能导致远程代码执行。

CVSS 7.5 · High EPSS 24.54% · P98
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-53107

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
@cyanheads/git-mcp-server vulnerable to command injection in several tools
Source: CVE Program / CVE List V5
Vulnerability Description
@cyanheads/git-mcp-server is an MCP server designed to interact with Git repositories. Prior to version 2.1.5, there is a command injection vulnerability caused by the unsanitized use of input parameters within a call to child_process.exec, enabling an attacker to inject arbitrary system commands. Successful exploitation can lead to remote code execution under the server process's privileges. The server constructs and executes shell commands using unvalidated user input directly within command-line strings. This introduces the possibility of shell metacharacter injection (|, >, &&, etc.). An MCP Client can be instructed to execute additional actions for example via indirect prompt injection when asked to read git logs. This issue has been patched in version 2.1.5.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
在命令中使用的特殊元素转义处理不恰当(命令注入)
Source: CVE Program / CVE List V5
Vulnerability Title
Git MCP Server 命令注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Git MCP Server是Casey Hand个人开发者的一个MCP服务器。 Git MCP Server 2.1.5之前版本存在命令注入漏洞,该漏洞源于未清理输入参数导致命令注入,可能导致远程代码执行。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
cyanheads git-mcp-server < 2.1.5 -

II. Public POCs for CVE-2025-53107

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 6251 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2025-53107

请登录查看更多情报信息。

Patches & Fixes for CVE-2025-53107 (1)

IV. Related Vulnerabilities