Skip to content
Heist/ feed
Back to feed
Medium

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-68143
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 08:18 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 17 Dec 2025, 22:09 UTC

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.

osv:CVE-2025-68143
Complete source record
{
  "id": "6e69ebd1bea83aee7ad6b6cb0246faed830d3140104fc2917e7a6352a775aaf6",
  "url": "https://osv.dev/vulnerability/CVE-2025-68143",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "mcp-server-git's unrestricted git_init tool allows repository creation at arbitrary filesystem locations",
    "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.",
    "evidence": "osv:CVE-2025-68143",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-68143",
      "aliases": [
        "CVE-2025-68143",
        "GHSA-5cgr-j3jf-jw3v",
        "PYSEC-2026-1621"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/modelcontextprotocol/servers",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "aa5a4f1c74637e153a066c8cdeb9ff5c56d2843c"
                },
                {
                  "fixed": "eac56e7bcde48fb64d5a973924d05d69a7d876e6"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:lfprojects:model_context_protocol_servers:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2025.9.25"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "eac56e7bcde48fb64d5a973924d05d69a7d876e6"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "typescript-servers-0.6.2",
            "python-servers-0.6.2",
            "typescript-servers-0.6.1",
            "typescript-servers-0.6.0",
            "python-servers-0.6.1",
            "0.5.1",
            "0.5.0",
            "0.4.1",
            "0.4.0",
            "0.3.1",
            "0.3.0",
            "0.2.0",
            "0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68143.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:27.289636599Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68143.json",
        "https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-5cgr-j3jf-jw3v",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-68143",
        "https://github.com/modelcontextprotocol/servers/commit/eac56e7bcde48fb64d5a973924d05d69a7d876e6"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-22"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68143.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-68143",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 493724,
  "published_at": "2025-12-17T22:09:43.159+00:00"
}