Skip to main content

Model Context Protocol Servers CVE-2025-68144

MEDIUM
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (CWE-88)
2025-12-17 security-advisories@github.com
6.3
CVSS 4.0 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send crafted MCP request
  2. Delivery
    Inject flag-like argument (--output=/path)
  3. Exploit
    git CLI parses as option
  4. Execution
    Overwrite file at attacker-specified path
  5. Impact
    Integrity 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

pypi mcp-server-git fix: 2025.12.18

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

GitHub Advisory PRIMARY 6.3 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
High
Subsequent system: Availability
Low

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

EPSS Score
0.1%
Top 69% exploitable
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:lfprojects:model_context_protocol_servers:*:*:*:*:*:*:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy