Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
8DescriptionCVE.org
A vulnerability was found in sigmade Git-MCP-Server up to 785aa159f262a02d5791a5d8a8e13c507ac42880. Affected by this vulnerability is the function child_process.exec of the file src/gitUtils.ts of the component show_merge_diff/quick_merge_summary/show_file_diff. The manipulation results in os command injection. The attack must be initiated from a local position. The exploit has been made public and could be used. This product operates on a rolling release basis, ensuring continuous delivery. Consequently, there are no version details for either affected or updated releases. It is advisable to implement a patch to correct this issue. The vendor was contacted early about this disclosure but did not respond in any way.
AnalysisAI
Local command injection in sigmade Git-MCP-Server's merge diff functions allows authenticated local attackers to execute arbitrary OS commands through unsanitized input passed to child_process.exec in src/gitUtils.ts. Public exploit code exists for this vulnerability, increasing the risk of active abuse. A patch is available and should be applied immediately, as the vendor has not responded to early disclosure notifications.
Technical ContextAI
The vulnerability is a classic OS command injection flaw (CWE-78) occurring in the Git-MCP-Server application (cpe:2.3:a:sigmade:git-mcp-server). The root cause lies in the unsafe use of child_process.exec() in Node.js/TypeScript code within src/gitUtils.ts. This function passes user-controlled input directly to the shell without proper sanitization or escaping, allowing attackers to break out of the intended command context and inject arbitrary shell metacharacters and commands. The affected code paths are specifically triggered through the show_merge_diff, quick_merge_summary, and show_file_diff components, suggesting the vulnerability is exposed through Git operations that accept user input for file or merge operations. Child_process.exec() inherently spawns a shell to execute commands, making it particularly dangerous when handling untrusted input compared to safer alternatives like child_process.execFile().
RemediationAI
Apply the available patch from the vendor via the pull request at https://github.com/sigmade/Git-MCP-Server/pull/2. The fix should replace unsafe child_process.exec() calls with child_process.execFile() or equivalent argument-passing mechanisms that do not invoke a shell, combined with strict input validation and sanitization of any Git-related parameters. Until patching is possible, restrict Git-MCP-Server access to trusted local users only, disable the show_merge_diff, quick_merge_summary, and show_file_diff features if not actively required, and monitor process execution logs for suspicious shell command patterns. Consider running Git-MCP-Server in a container or sandbox with minimal host system privileges to limit the impact of successful command injection.
More in Git Mcp Server
View allSame weakness CWE-78 – OS Command Injection
View allSame technique Command Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-13768