Command Injection Vulnerability in Git MCP Server by Cyanheads
CVE-2025-53107
7.5HIGH
What is CVE-2025-53107?
The Git MCP Server prior to version 2.1.5 contains a command injection vulnerability due to the unsanitized use of input parameters in system command executions. This flaw allows attackers to inject arbitrary commands leading to potential remote code execution with server privileges. The server's method of constructing and executing shell commands with unvalidated user input poses a risk of injection, particularly through shell metacharacters. Moreover, an MCP Client could exploit this vulnerability by indirectly prompting the server to perform unintended actions, such as reading git logs. The issue has been resolved in version 2.1.5, and users are urged to update to safeguard against possible exploitation.
Affected Version(s)
git-mcp-server < 2.1.5