CVE-2025-68144: Mcp server git Mcp-server-git Argument Injection Vulnerability
MODERATECVE-2025-68144 is a MODERATE mcp-server-git argument injection vulnerability (CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')) affecting Mcp server git libraries in the PyPI ecosystem. The issue involves mcp-server-git argument injection in git_diff and git_checkout functions allows overwriting local files. Remediation is available by upgrading affected packages to version 2025.12.18.
CVE-2025-68144 at a Glance
How to Fix CVE-2025-68144
To remediate this vulnerability, upgrade all affected Mcp server git dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install mcp-server-git>=2025.12.18
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show mcp-server-git
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-68144, inspect your installed packages using pip:
pip show mcp-server-git
Analyze the terminal output to locate any version of Mcp server git in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2025.12.18), your application is affected.
Note: The pip show mcp-server-git command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection'), where the product constructs a string for a command to be executed by a separate component in another control sphere, but it does not properly delimit the intended arguments, options, or switches within that command string. In Mcp server git, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-68144 Affected Mcp server git Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mcp-server-git
|
PyPI |
< 2025.12.18
|
2025.12.18
|
References
Frequently Asked Questions
What is CVE-2025-68144?
Which Mcp server git versions are affected?
What version fixes CVE-2025-68144?
Is mcp-server-git affected?
What CWE is associated with CVE-2025-68144?
How can I check PyPI dependencies for CVE-2025-68144?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9xwc-hfwc-8w59",
"modified" : "2025-12-20T05:17:54Z",
"published" : "2025-12-17T22:50:29Z",
"aliases" : [ "CVE-2025-68144" ],
"summary" : " mcp-server-git argument injection in git_diff and git_checkout functions allows overwriting local files",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "mcp-server-git"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2025.12.18"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-9xwc-hfwc-8w59"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-68144"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/modelcontextprotocol/servers"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-88" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-12-17T22:50:29Z",
"nvd_published_at" : "2025-12-17T23:16:04Z"
}
}