CVE-2025-53107
Awaiting Analysis Awaiting Analysis - Queue
BaseFortify

Publication date: 2025-07-01

Last updated on: 2025-07-03

Assigner: GitHub, Inc.

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-07-01
Last Modified
2025-07-03
Generated
2026-05-07
AI Q&A
2025-07-01
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Currently, no data is known.
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-77 The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

@cyanheads/git-mcp-server versions prior to 2.1.5 have a command injection vulnerability. This occurs because the server uses unsanitized user input directly in shell commands executed via child_process.exec. An attacker can exploit this by injecting arbitrary system commands through specially crafted input, leading to remote code execution with the server process's privileges. The vulnerability involves shell metacharacter injection such as |, >, &&, etc.


How can this vulnerability impact me? :

If exploited, this vulnerability allows an attacker to execute arbitrary system commands remotely on the server running the vulnerable software. This can lead to full compromise of the server process, including unauthorized access, data manipulation, or disruption of service.


What immediate steps should I take to mitigate this vulnerability?

Upgrade @cyanheads/git-mcp-server to version 2.1.5 or later, where the command injection vulnerability has been patched. Until the upgrade can be applied, restrict access to the server to trusted users only and monitor for any suspicious activity involving shell command execution.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart