{
  "id": "CVE-2025-68144",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-68144",
  "published_at": "2025-12-17T22:10:56.086Z",
  "title": "mcp-server-git argument injection in git_diff and git_checkout functions allows overwriting local files",
  "vendor": "modelcontextprotocol",
  "product": "servers",
  "cvss": {
    "score": 7.1,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-88",
  "cpes": [
    "cpe:2.3:a:lfprojects:model_context_protocol_servers:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 6.3,
    "nvd": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "modelcontextprotocol",
        "product": "servers",
        "ranges": [
          "\u003c 2025.12.17"
        ],
        "fixed_in": [
          "2025.12.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade servers to 2025.12.17 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-9xwc-hfwc-8w59"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
