Model Context Protocol Servers
CVE-2025-68144
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted MCP request
-
DeliveryInject flag-like argument (--output=/path)
-
Exploitgit CLI parses as option
-
ExecutionOverwrite file at attacker-specified path
-
ImpactIntegrity compromise
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Argument sanitization
|
| Impact | The CVSS 6.3 score reflects Network vector (remote exploitable), Low complexity, No special privileges required, and significant Integrity impact (SI:H) with lesser Availability impact (SA:L). The attack requires User Interaction (UI:P), indicating a human actor must trigger the vulnerable function with attacker-controlled input. Real-world risk depends on deployment context: if mcp-server-git is exposed to untrusted users or integrated into systems processing user-supplied repository references, the integrity violation (arbitrary file overwrite) poses operational risk. The lack of Confidentiality impact (VC:N, VI:N) means sensitive data disclosure is not a vector, but overwriting critical files could indirectly harm availability or enable privilege escalation if writable paths include application binaries or configuration. Absence of confirmed active exploitation (KEV status not provided) and lack of public POC at time of analysis suggest this is a pre-release or recently-disclosed vulnerability; however, the simplicity of the exploit (basic command injection via option flags) and the unauthenticated, low-complexity attack surface make prioritization important for exposed instances. |
| Exploit ScenarioDerived | An attacker with network access to a system running mcp-server-git crafts a request to the git_diff or git_checkout function with a malicious ref argument such as --output=/etc/important_config.txt. Because arguments are not sanitized, the git CLI interprets this as an option directive and writes output to the attacker-specified path. If the mcp-server-git process has write permissions to that location, the attacker achieves arbitrary file overwrite without authentication. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 14, 2026
Arbitrary file overwrite in mcp-server-git prior to version 2025.12.17 allows unauthenticated remote attackers with user interaction to overwrite files via unsanitized command-line arguments passed to git CLI functions. The vulnerability affects git_diff and git_checkout operations where flag-like values (e.g., --output=/path/to/file) are interpreted as git options rather than validated references, enabling attackers to redirect output to arbitrary filesystem locations. CVSS 6.3 reflects high integrity impact with low availability impact; EPSS signal and active exploitation status not independently confirmed at analysis time.
RemediationAI
Vendor-released patch: mcp-server-git 2025.12.17. Users must update to version 2025.12.17 or later, which adds input validation that rejects arguments starting with a hyphen and verifies arguments resolve to valid git refs via rev_parse before passing to git CLI. No workarounds are documented for earlier versions; immediate upgrade is the sole mitigation. Installation and upgrade instructions are available in the official repository and GitHub Security Advisory at https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-9xwc-hfwc-8w59.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
mcp-server-git is a Model Context Protocol (MCP) server implementation that exposes git operations through a structured interface. The vulnerability stems from CWE-88 (Improper Neutralization of Argument Delimiters in a Command), where the git_diff and git_checkout functions construct git CLI commands using unsanitized user input. The git command-line parser interprets arguments beginning with a hyphen (-) as options; an attacker providing input such as --output=/tmp/malicious.txt causes git to write output to that path instead of treating it as a git reference. The rev_parse command is the legitimate mechanism to validate that a string resolves to a valid git ref; the fix adds this validation plus argument prefix filtering to reject option-like inputs before command execution.
Know when Model Context Protocol Servers gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
DescriptionGitHub Advisory
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Affected Products (CPE)GitHub Advisory
Unvalidated path handling in mcp-server-git versions before 2025.9.25 allows remote attackers to create Git repositories
Path traversal in mcp-server-git prior to version 2025.12.17 allows unauthenticated remote attackers to access repositor
Model Context Protocol Servers is a collection of reference implementations for the model context protocol (MCP). In mcp
NVD
CVE.org
EPSS
GitHub
Exploit-DB