PT-2025-51936

CVE-2025-68143

·

Published

2025-12-17

·

Updated

2026-07-07

Description by

CVSS 3.1
8.8
High
MetricsAV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions mcp-server-git versions prior to 2025.9.25 mcp-server-git versions prior to 2025.12.18
Description The Model Context Protocol Servers, specifically the mcp-server-git component, contains a flaw in the git init tool. Prior to version 2025.9.25, this tool permitted the creation of Git repositories at arbitrary filesystem locations without proper validation. This allowed operation on any directory accessible to the server process, potentially enabling subsequent git operations on those directories. The tool has been removed in later versions as the server is intended to operate on existing repositories only. Exploitation of this issue, in conjunction with the Filesystem MCP server, could lead to unauthorized file access and potential remote code execution. The issue can be triggered through prompt injection via malicious content such as README files or issues.
Recommendations mcp-server-git versions prior to 2025.9.25: Upgrade to version 2025.9.25 or newer. mcp-server-git versions prior to 2025.12.18: Upgrade to version 2025.12.18 or newer.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-5CGR-J3JF-JW3V
PYSEC-2026-1621
Found an issue in the description? Have something to add? Feel free to write us 👾