CVE-2026-85626 Details
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.
A vulnerability allowing argument injection has been identified in git-mcp-server version 2.15.1. This issue arises in the ref and object parameters of the git_log, git_diff, and git_show tools, which do not properly validate leading dashes. As a result, attackers can inject git command-line options, such as --output=, to manipulate file writing behaviors. Exploitation of this vulnerability could lead to unauthorized file writes outside the repository, targeting arbitrary paths accessible by the process.
To address this vulnerability, it is recommended to validate the ref, object, and branch parameters by rejecting values that begin with a dash or by only passing them after a '--' separator. Additionally, implementing a validation check to ensure the parameters conform to expected formats, such as valid ref or commit patterns, would help mitigate the risk. Re-enabling the rejection of unknown flags in the git argument validation process is also advised.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 4, 2026CISA-ADP
Assessed Sep 8, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/cyanheads/git-mcp-server/issues/53 | CISA-ADP | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/cyanheads/git-mcp-server | [email protected] | Vendor |
| https://github.com/cyanheads/git-mcp-server/blob/v2.15.3/src/services/git/providers/cli/operations/commits/log.ts | [email protected] | Source CodeVendor |
| https://github.com/cyanheads/git-mcp-server/blob/v2.15.3/src/services/git/providers/cli/utils/command-builder.ts | [email protected] | Source CodeVendor |
| https://github.com/cyanheads/git-mcp-server/issues/53 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://www.vulncheck.com/advisories/git-mcp-server-2.15.1-argument-injection-via-git-ref-parameters | [email protected] | AdvisoryRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-88 | Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| cyanheads git-mcp-server | <= 2.15.3 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 8, 2026 | CVE Modified | CISA-ADP |
| Sep 4, 2026 | New CVE Received | [email protected] |
Volerion