Vulnerability in mcp-server-git Affects Multiple Versions
CVE-2025-68144
6.3MEDIUM
What is CVE-2025-68144?
In versions of mcp-server-git released before 2025.12.17, the git_diff and git_checkout functions inadequately handle user-controlled arguments, directly passing them to git CLI commands without proper sanitization. This oversight means that flag-like values, such as --output=/path/to/file for git_diff, could be interpreted as command-line options. This can result in arbitrary file overwrites. The mitigation introduced ensures that arguments starting with '-' are rejected, and validates that the argument resolves to a valid git reference via rev_parse before execution. Users are strongly encouraged to update to version 2025.12.17 upon its release to safeguard their systems.
Affected Version(s)
servers < 2025.12.17
