CVE-2025-68143
Unknown Unknown - Not Provided
Arbitrary Directory Creation Vulnerability in MCP git_init Tool

Publication date: 2025-12-17

Last updated on: 2026-04-14

Assigner: GitHub, Inc.

Description
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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-12-17
Last Modified
2026-04-14
Generated
2026-05-07
AI Q&A
2025-12-18
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
lfprojects model_context_protocol_servers to 2025.9.25 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

The vulnerability exists in the git_init tool of mcp-server-git versions prior to 2025.9.25. This tool accepted arbitrary filesystem paths and created Git repositories without validating the target location. Unlike other tools that required an existing repository, git_init could operate on any directory accessible to the server process, potentially allowing unauthorized git operations on those directories. The tool was removed in version 2025.9.25 to fix this issue.


How can this vulnerability impact me? :

This vulnerability can allow unauthorized creation and manipulation of Git repositories in arbitrary directories accessible to the server process. This could lead to unauthorized access or modification of files, potentially compromising data integrity or confidentiality within those directories.


What immediate steps should I take to mitigate this vulnerability?

Upgrade the mcp-server-git software to version 2025.9.25 or newer, as this version removes the vulnerable git_init tool. The server should only operate on existing repositories, and the git_init tool that allowed arbitrary filesystem path usage has been removed to prevent this vulnerability.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart