CVE-2026-85626

git-mcp-server 2.15.1 Argument Injection via Git Ref Parameters

Published Sep 4, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Cyanheads
Cyanheads git-mcp-server
Vendors & Products Cyanheads
Cyanheads git-mcp-server
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'}

Weaknesses
  • CWE-88

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 1, 2026, 6:39 PM
Reserved
Sep 4, 2026, 11:03 AM
Status
Deferred
Published
Sep 4, 2026, 3:17 PM
Modified
Sep 23, 2026, 5:17 PM