PT-2025-51938 · Unknown · Git-Mcp-Server

Yardenporat

·

Published

2025-12-17

·

Updated

2026-03-10

·

CVE-2025-68145

CVSS v3.1

9.1

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Name of the Vulnerable Software and Affected Versions mcp-server-git versions prior to 2025.12.17
Description In mcp-server-git versions prior to 2025.12.17, the server did not validate that repo path arguments in subsequent tool calls were within the configured repository path when started with the --repository flag. This could allow tool calls to operate on other repositories accessible to the server process. The fix adds path validation that resolves both the configured repository and the requested path (following symlinks) and verifies the requested path is within the allowed repository before executing any git operations.
Recommendations Upgrade to version 2025.12.17 to resolve this issue.

Exploit

Fix

Path traversal

Weakness Enumeration

Related Identifiers

CVE-2025-68145
GHSA-J22H-9J4X-23W5

Affected Products

Git-Mcp-Server