CVE-2026-85626: git-mcp-server 2.15.1 Argument Injection via Git Ref Parameters

Published Sep 4, 2026
·
Updated

git-mcp-server 2.15.1 contains an argument injection vulnerability in the ref and object parameters of gitlog, gitdiff, and gitshow 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.

Affected Software

1 affected component
git-mcp-server=2.15.1

Event History

Sep 4, 2026
CVE Published
via MITRE·02:32 PM
Data Sourced
via MITRE·02:32 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Instances of git-mcp-server 2.15.1 that make the git_log, git_diff, or git_show tools available to an attacker are exposed. The attacker can target the ref or object parameters accepted by those tools.

2

Does exploitation require authentication or user interaction?

No authentication or user interaction is required according to the supplied vector. The attack is network-reachable and has low attack complexity.

3

What can an attacker do through the injection?

An attacker can inject Git command-line options through affected parameters, including --output=. This can cause files to be written outside the repository to arbitrary paths that the git-mcp-server process can access.

4

How can I determine whether an instance is affected?

Verify whether the deployment is running git-mcp-server 2.15.1 and exposes git_log, git_diff, or git_show. Check whether their ref or object inputs permit values beginning with a dash, since those inputs lack leading-dash validation in the affected version.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203