{"id":"CVE-2025-68144","aliases":["EUVD-2025-204003","GHSA-9xwc-hfwc-8w59","PYSEC-2026-1622"],"status":"published","title":"mcp-server-git argument injection in git_diff and git_checkout functions allows overwriting local files","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.","severity":{"version":"4.0","score":6.3,"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","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.07209,"percentile":0.94393,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-88"],"published":"2025-12-17T22:10:56Z","modified":"2026-07-07T17:56:33Z","fixes":[{"ecosystem":"PyPI","package":"mcp-server-git","fixed_in":["2025.12.18"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"mcp-server-git","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2025.12.18"}]}]},{"source":"osv","ecosystem":"PyPI","package":"mcp-server-git","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2025.12.18"}]}],"versions":["0.2.0","0.3.0","0.4.0","0.4.1","0.5.0","0.5.1","0.6.0","0.6.1","0.6.2","2025.1.14","2025.11.25","2025.7.1","2025.9.25"]},{"source":"osv","ecosystem":"PyPI","package":"mcp-server-git","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2025.12.18"}]}],"versions":["0.2.0","0.3.0","0.4.0","0.4.1","0.5.0","0.5.1","0.6.0","0.6.1","0.6.2","2025.1.14","2025.11.25","2025.7.1","2025.9.25"]}],"products":[{"vendor":"lfprojects","product":"model_context_protocol_servers"},{"vendor":"modelcontextprotocol","product":"servers"}],"references":[{"url":"https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-9xwc-hfwc-8w59","tags":["x_refsource_CONFIRM","Vendor Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68144","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-9xwc-hfwc-8w59","tags":["advisory"]},{"url":"https://github.com/modelcontextprotocol/servers","tags":["package"]},{"url":"https://pypi.org/project/mcp-server-git","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2025-68144","title":"mcp-server-git argument injection in git_diff and git_checkout functions allows overwriting local files","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.","status":"published","published":"2025-12-17T22:10:56.086Z","modified":"2025-12-18T15:07:03.402Z","cvss":[{"version":"4.0","score":6.3,"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","level":"medium","assessor":"cna"}],"cwes":["CWE-88"],"updated_at":"2026-11-02T14:32:35.742256Z"}],"euvd":[{"id":"EUVD-2025-204003","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.","status":"published","published":"2025-12-17T22:10:56Z","modified":"2025-12-18T15:07:03Z","cvss":[{"version":"4.0","score":6.3,"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","level":"medium"}],"updated_at":"2026-11-02T19:49:03.071772Z"}],"ghsa":[{"id":"GHSA-9xwc-hfwc-8w59","title":" mcp-server-git argument injection in git_diff and git_checkout functions allows overwriting local files","description":"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.","status":"published","published":"2025-12-17T22:50:29Z","modified":"2025-12-20T05:17:55Z","cvss":[{"version":"4.0","score":6.3,"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","level":"medium"}],"cwes":["CWE-88"],"updated_at":"2026-11-02T14:39:14.093341Z"}],"nvd":[{"id":"CVE-2025-68144","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.","status":"published","published":"2025-12-17T23:16:04.703Z","modified":"2026-06-17T09:58:37.787Z","cvss":[{"version":"4.0","score":6.3,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium","assessor":"secondary"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L","level":"high","assessor":"primary"}],"cwes":["CWE-88"],"updated_at":"2026-11-02T14:11:51.309584Z"}],"osv":[{"id":"GHSA-9xwc-hfwc-8w59","title":" mcp-server-git argument injection in git_diff and git_checkout functions allows overwriting local files","description":"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.","status":"published","published":"2025-12-17T22:50:29Z","modified":"2026-07-07T17:56:33.750487025Z","cvss":[{"version":"4.0","score":6.3,"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","level":"medium"}],"cwes":["CWE-88"],"updated_at":"2026-11-02T15:46:44.225359Z"},{"id":"PYSEC-2026-1622","title":" mcp-server-git argument injection in git_diff and git_checkout functions allows overwriting local files","description":"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.","status":"published","published":"2026-07-07T16:03:13.214568Z","modified":"2026-07-07T17:47:03.460233612Z","cvss":[{"version":"4.0","score":6.3,"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","level":"medium"}],"updated_at":"2026-11-02T15:52:55.06457Z"}]}}
