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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2025-68145— mcp-server-git has missing path validation when using --repository flag

EPSS 0.10% · P26
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2025-68145

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 has missing path validation when using --repository flag
Source: NVD (National Vulnerability Database)
Vulnerability Description
In mcp-server-git versions prior to 2025.12.17, when the server is started with the --repository flag to restrict operations to a specific repository path, it did not validate that repo_path arguments in subsequent tool calls were actually within that configured path. This could allow tool calls to operate on other repositories accessible to the server process. The fix adds path validation that resolves both the configured repository and the requested path (following symlinks) and verifies the requested path is within the allowed repository before executing any git operations. Users are advised to upgrade to 2025.12.17 upon release to remediate this issue.
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之前版本存在路径遍历漏洞,该漏洞源于未验证后续工具调用中的repo_path参数是否在配置的路径内,可能导致对服务器进程可访问的其他仓库进行操作。
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-68145

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-68145

登录查看更多情报信息。

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

CVE-2025-68144mcp-server-git argument injection in git_diff and git_checkout functions allows overwritin
CVE-2025-68143mcp-server-git's unrestricted git_init tool allows repository creation at arbitrary filesy

IV. Related Vulnerabilities

V. Comments for CVE-2025-68145

No comments yet


Leave a comment