漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
mcp-server-git argument injection in git_diff and git_checkout functions allows overwriting local files
Vulnerability Description
In mcp-server-git versions prior to 2025.12.17, the git_diff and git_checkout functions passed user-controlled arguments directly to git CLI commands without sanitization. Flag-like values (e.g., `--output=/path/to/file` for `git_diff`) would be interpreted as command-line options rather than git refs, enabling arbitrary file overwrites. The fix adds validation that rejects arguments starting with - and verifies the argument resolves to a valid git ref via rev_parse before execution. Users are advised to update to 2025.12.17 resolve this issue when it is released.
CVSS Information
N/A
Vulnerability Type
参数注入或修改
Vulnerability Title
Model Context Protocol Servers 参数注入漏洞
Vulnerability Description
Model Context Protocol Servers是Model Context Protocol开源的一个大模型上下文协议服务器。 Model Context Protocol Servers 2025.12.17之前版本存在参数注入漏洞,该漏洞源于git_diff和git_checkout函数将用户控制的参数直接传递给git CLI命令而未进行清理,可能导致任意文件覆盖。
CVSS Information
N/A
Vulnerability Type
N/A