Skip to main content
← All vulnerabilities
CVE-2025-68143GHSA-5CGR-J3JF-JW3VPYSEC-2026-1621

mcp-server-git's unrestricted git_init tool allows repository creation at arbitrary filesystem locations

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2025.9.25
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • modelcontextprotocol servers

    fixed in 2025.9.25

  • mcp-server-gitPyPI

    fixed in 2025.9.25

References 2

GitHub · modelcontextprotocol/servers