Skip to main content

Model Context Protocol Servers CVE-2025-68143

MEDIUM
Path Traversal (CWE-22)
2025-12-17 security-advisories@github.com
6.5
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious MCP request with git_init tool
  2. Delivery
    Include arbitrary filesystem path as argument
  3. Exploit
    Server accepts unvalidated path
  4. Execution
    Git repository created in attacker-controlled location
  5. Persist
    Subsequent git operations modify target directory contents
  6. Impact
    System integrity or availability compromised

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

CVSS 6.5 indicates moderate severity with network attack vector and low complexity, but several signals suggest the practical risk is context-dependent. The CVSS vector shows UI:P (user interaction required), meaning an attacker must trick or socially engineer an MCP client user into invoking the git_init tool with a malicious path-reducing autonomous exploit likelihood. The scope is listed as high (S:H) with high integrity and availability impacts (SI:H, SA:H), reflecting that arbitrary repository creation could compromise system availability or modify unintended directories. However, exploitation is constrained by the server process's filesystem permissions: an attacker cannot create repositories outside directories the process can write to. No public exploit code or active exploitation via CISA KEV has been identified, and the fix (tool removal) is straightforward and available. For organizations using mcp-server-git, the real risk depends on: (1) whether the server is exposed to untrusted MCP clients, (2) the privileges of the server process, and (3) whether critical system directories are writable. In high-trust internal deployments with restricted process permissions, risk is low; in multi-tenant or public-facing scenarios, risk is elevated.

Exploit ScenarioDerived

An attacker with network access to an mcp-server-git instance social-engineers or tricks an MCP client user into invoking the git_init tool with a path pointing to a sensitive system directory (e.g., a directory storing application configuration or data files). The unvalidated path is accepted, and a Git repository is initialized in that directory, potentially overwriting or contaminating existing files. Subsequently, the attacker leverages other MCP git tools to modify files within the now-git-controlled directory, achieving integrity compromise.

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

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

Alert me

AnalysisAIv1 – Apr 14, 2026

Unvalidated path handling in mcp-server-git versions before 2025.9.25 allows remote attackers to create Git repositories in arbitrary filesystem locations accessible to the server process via the git_init tool, potentially enabling subsequent malicious git operations on unintended directories. The git_init tool was completely removed in the patched version since the server is designed to operate only on existing repositories. No active exploitation has been confirmed, but the vulnerability carries a moderate CVSS score of 6.5 with network accessibility and high scope impact.

RemediationAI

Vendor-released patch: Model Context Protocol Servers version 2025.9.25 or newer. The primary remediation is to upgrade mcp-server-git to version 2025.9.25 or later, which removes the git_init tool entirely since it is inconsistent with the server's design principle of operating on existing repositories only. Users should review their deployment to confirm they are running the patched version. If immediate upgrade is not feasible, restrict network access to the mcp-server-git instance to trusted MCP clients only, and ensure the server process runs with minimal filesystem permissions (principle of least privilege), limiting write access to directories that should legitimately contain Git repositories. For additional details and to verify the patch, consult the upstream fix commit at https://github.com/modelcontextprotocol/servers/commit/eac56e7bcde48fb64d5a973924d05d69a7d876e6 and the security advisory at https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-5cgr-j3jf-jw3v.

Affected Packages

pypi mcp-server-git fix: 2025.9.25

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

The Model Context Protocol (MCP) is a framework enabling AI models to interact with external systems through structured tool interfaces. mcp-server-git is a reference implementation providing git operation capabilities to MCP clients. The vulnerability stems from CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), where the git_init tool performed no validation of the filesystem path argument before invoking git repository initialization. Unlike other MCP git tools that required operating on pre-existing repositories (implying path constraints), git_init accepted any accessible path and created repositories there, expanding the attack surface. The affected CPE is lfprojects:model_context_protocol_servers, with all versions prior to 2025.9.25 vulnerable. The root cause is insufficient input validation on user-controlled filesystem paths passed to system commands.

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

Vendor (github) PRIMARY 6.5 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H

Primary rating from Vendor (github) · only source for this CVE.

CVSS VectorVendor: github

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
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

DescriptionCVE.org

Model Context Protocol Servers is a collection of reference implementations for the model context protocol (MCP). In mcp-server-git versions prior to 2025.9.25, the git_init tool accepted arbitrary filesystem paths and created Git repositories without validating the target location. Unlike other tools which required an existing repository, git_init could operate on any directory accessible to the server process, making those directories eligible for subsequent git operations. The tool was removed entirely, as the server is intended to operate on existing repositories only. Users are advised to upgrade to 2025.9.25 or newer to remediate this issue.

Threat Intelligence Overview

EPSS Score
0.2%
Top 64% exploitable
Data Quality
4 sources
Confidence: Medium

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.2%
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

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Affected Products (CPE)CVE.org

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