SecurityContext

CVE-2025-68145: mcp-server-git - Broken Access Control

  • Cve: CVE-2025-68145
  • Name: mcp-server-git - Broken Access Control
  • Description: In mcp-server-git versions prior to 2025.12.17, when the server is started with the --repository flag to restrict operations to a specific repository path, it did not validate that repo_path arguments in subsequent tool calls were actually within that configured path. 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. Users are advised to upgrade to 2025.12.17 upon release to remediate this issue.
  • Impact: Attackers can operate on repositories outside the allowed path, potentially accessing or modifying unauthorized data.
  • Remediation: Upgrade to version 2025.12.17 or later.
  • Vulnerability type: broken_access_control
  • Vulnerability impact: broken_access_control
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Epss score: 0.07527
  • Epss percentile: 0.94645
  • Assignee: [email protected]
  • Published at: 2025-12-17T23:16:04Z
  • Age in days: 342
  • Modified at: 2026-09-30T23:10:00Z
  • Patch available: yes
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-68145
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

Hackerone

  • Reports: 1
  • Rank: 5211

References

UrlSourceTags
https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-j22h-9j4x-23w5nvdVendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
lfprojects:model_context_protocol_servers< 2025.12.18nonvd/v1/products/lfprojects/model_context_protocol_servers

Projects

RepositoryLink kindsIndexedUrl
modelcontextprotocol/serverspackage, security_advisoryyes/v1/repositories/modelcontextprotocol/servers

Index

  • Repositories: 7
  • Repositories high signal: 2
  • Packages: 1

Exploitation

  • Remote: yes
  • Hackerone reports: 1
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, exposed hosts