{"id":"CVE-2025-68144","aliases":["CVE-2025-68144","GHSA-9xwc-hfwc-8w59","PYSEC-2026-1622"],"related":[],"kind":"vulnerability","state":"published","title":"mcp-server-git argument injection in git_diff and git_checkout functions allows overwriting local files","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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":"cvelist"},{"lang":"en","text":"In mcp-server-git versions prior to 2025.12.18, 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.18 resolve this issue.\n\nThank you to https://hackerone.com/yardenporat for reporting.","format":"markdown","source":"ghsa"}],"published":"2025-12-17T22:10:56.086Z","modified":"2026-07-07T17:56:33.750Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:N/SI:H/SA:L","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:N/SI:H/SA:L","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:N/SI:H/SA:L","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L","score":7.1,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:N/SI:H/SA:L"}],"cwes":["CWE-88"],"affected":[{"ranges":[{"version":"< 2025.12.17","status":"affected"}],"vendor":"modelcontextprotocol","product":"servers","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2025.12.18"}],"ecosystem":"PyPI","package":"mcp-server-git","purl":"pkg:pypi/mcp-server-git","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2025.12.17"}],"vendor":"lfprojects","product":"model_context_protocol_servers","cpe":"cpe:2.3:a:lfprojects:model_context_protocol_servers:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2025.12.18"}],"ecosystem":"PyPI","package":"mcp-server-git","purl":"pkg:pypi/mcp-server-git","source":"pysec"}],"references":[{"url":"https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-9xwc-hfwc-8w59","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68144","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/modelcontextprotocol/servers","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/mcp-server-git","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-9xwc-hfwc-8w59","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-12-18T14:53:26.151Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68144","url":"https://www.cve.org/CVERecord?id=CVE-2025-68144","licence":"CVE Terms of Use","modified":"2025-12-18T15:07:03.402Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9xwc-hfwc-8w59","url":"https://github.com/advisories/GHSA-9xwc-hfwc-8w59","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:33.750Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68144","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68144","licence":"Public domain","modified":"2026-06-17T09:58:37.787Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1622","url":"https://osv.dev/vulnerability/PYSEC-2026-1622","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:03.460Z"}],"updatedAt":"2026-11-25T22:59:09.608Z","epss":{"score":0.07716,"percentile":0.94747,"date":"2026-12-01T12:00:22.000Z"}}