CVE-2025-68144 (CNNVD-202512-3140)
中文标题:
Model Context Protocol Servers 参数注入漏洞
英文标题:
mcp-server-git argument injection in git_diff and git_checkout functions allows overwriting local files
漏洞描述
中文描述:
Model Context Protocol Servers是Model Context Protocol开源的一个大模型上下文协议服务器。 Model Context Protocol Servers 2025.12.17之前版本存在参数注入漏洞,该漏洞源于git_diff和git_checkout函数将用户控制的参数直接传递给git CLI命令而未进行清理,可能导致任意文件覆盖。
英文描述:
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.
CWE类型:
标签:
受影响产品
| 厂商 | 产品 | 版本 | 版本范围 | 平台 | CPE |
|---|---|---|---|---|---|
| modelcontextprotocol | servers | < 2025.12.17 | - | - |
cpe:2.3:a:modelcontextprotocol:servers:<_2025.12.17:*:*:*:*:*:*:*
|
解决方案
中文解决方案:
英文解决方案:
临时解决方案:
参考链接
cve.org
CVSS评分详情
4.0 (cna)
MEDIUMCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:N/SI:H/SA:L
时间信息
利用信息
数据源详情
| 数据源 | 记录ID | 版本 | 提取时间 |
|---|---|---|---|
| CVE | cve_CVE-2025-68144 |
2025-12-19 03:24:15 | 2026-01-12 02:12:28 |
| NVD | nvd_CVE-2025-68144 |
2025-12-19 03:25:39 | 2026-01-12 02:28:10 |
| CNNVD | cnnvd_CNNVD-202512-3140 |
2026-01-11 06:15:04 | 2026-01-12 02:38:02 |
版本与语言
安全公告
变更历史
查看详细变更
- vulnerability_type: 未提取 -> 授权问题
- cnnvd_id: 未提取 -> CNNVD-202512-3140
- data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
查看详细变更
- data_sources: ['cve'] -> ['cve', 'nvd']