Description
git-mcp-server 2.15.1 contains an argument injection vulnerability in the ref and object parameters of git_log, git_diff, and git_show tools that lack leading-dash validation. Attackers can inject git command-line options like --output= to write files outside the repository to arbitrary paths accessible by the process.
Published: 2026-09-04
Score: 8.7 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

git-mcp-server 2.15.1 suffers from an argument injection flaw in the ref and object parameters of the git_log, git_diff, and git_show utilities. The handler fails to validate that these parameters do not begin with a dash, allowing an attacker to inject git command‑line options such as --output= that direct the underlying git binary to write data to arbitrary filesystem locations outside the repository. Successful exploitation provides the attacker with the ability to create or overwrite files that are accessible to the process, potentially leading to privilege escalation or persistence mechanisms. The weakness is classified as CWE-88.

Affected Systems

Vulnerable instances are running cyanheads git-mcp-server version 2.15.1. No other versions are specifically listed as affected in the CNA data, but the issue appears to have been addressed in subsequent releases such as 2.15.3.

Risk and Exploitability

With a CVSS score of 8.7, the vulnerability is rated as High severity. The EPSS score is unavailable, so the exact likelihood of exploitation cannot be quantified from the data, but the fact that it is in a widely used git server component suggests it could be targeted by attackers. The vulnerability is not listed in the CISA KEV catalog. Likely attack vectors include any context where an adversary can supply or influence git ref or object parameters—this could be a remote API call, a local script execution, or any integration that forwards user supplied values to the git-mcp-server tooling. Exploitation requires the ability to insert a leading dash into the parameter, and the ineffectiveness of input filtering is the root cause.

Generated by OpenCVE AI on September 4, 2026 at 15:23 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade git-mcp-server to version 2.15.3 or later, which implements validation for ref and object parameters.
  • If an upgrade cannot occur immediately, sanitize input on the ref and object fields to reject any value starting with a dash before invoking git.
  • Restrict exposure of the git-mcp-server service to trusted networks and apply role‑based access controls so that only authorized users can invoke git operations.

Generated by OpenCVE AI on September 4, 2026 at 15:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 04 Sep 2026 14:45:00 +0000

Type Values Removed Values Added
Description git-mcp-server 2.15.1 contains an argument injection vulnerability in the ref and object parameters of git_log, git_diff, and git_show tools that lack leading-dash validation. Attackers can inject git command-line options like --output= to write files outside the repository to arbitrary paths accessible by the process.
Title git-mcp-server 2.15.1 Argument Injection via Git Ref Parameters
Weaknesses CWE-88
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-04T14:32:16.072Z

Reserved: 2026-09-04T11:03:33.316Z

Link: CVE-2026-85626

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-04T15:17:43.040

Modified: 2026-09-04T15:17:43.040

Link: CVE-2026-85626

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-04T15:30:07Z

Weaknesses
  • CWE-88

    Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')