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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2025-68144— mcp-server-git argument injection in git_diff and git_checkout functions allows overwriting local files

EPSS 0.03% · P9
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2025-68144

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
mcp-server-git argument injection in git_diff and git_checkout functions allows overwriting local files
Source: NVD (National Vulnerability Database)
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.
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
参数注入或修改
Source: NVD (National Vulnerability Database)
Vulnerability Title
Model Context Protocol Servers 参数注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Model Context Protocol Servers是Model Context Protocol开源的一个大模型上下文协议服务器。 Model Context Protocol Servers 2025.12.17之前版本存在参数注入漏洞,该漏洞源于git_diff和git_checkout函数将用户控制的参数直接传递给git CLI命令而未进行清理,可能导致任意文件覆盖。
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

VendorProductAffected VersionsCPESubscribe
modelcontextprotocolservers < 2025.12.17 -

II. Public POCs for CVE-2025-68144

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-68144

登录查看更多情报信息。

Same Patch Batch · modelcontextprotocol · 2025-12-17 · 3 CVEs total

CVE-2025-68145mcp-server-git has missing path validation when using --repository flag
CVE-2025-68143mcp-server-git's unrestricted git_init tool allows repository creation at arbitrary filesy

IV. Related Vulnerabilities

V. Comments for CVE-2025-68144

No comments yet


Leave a comment