Model Context Protocol Servers
CVE-2025-68143
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious MCP request with git_init tool
-
DeliveryInclude arbitrary filesystem path as argument
-
ExploitServer accepts unvalidated path
-
ExecutionGit repository created in attacker-controlled location
-
PersistSubsequent git operations modify target directory contents
-
ImpactSystem 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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
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
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Affected Products (CPE)CVE.org
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
Arbitrary file overwrite in mcp-server-git prior to version 2025.12.17 allows unauthenticated remote attackers with user
NVD
CVE.org
EPSS
GitHub
Exploit-DB