CVE-2026-85626 git-mcp-server 2.15.1 Argument Injection via Git Ref Parameters
Attackers can inject Git command-line options to write files to arbitrary paths, potentially leading to code execution or data modification.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-85626?
CVE-2026-85626 is a high-severity command injection vulnerability in cyanheads git-mcp-server, published on 4 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-88
Which versions are affected by CVE-2026-85626?
How do I fix CVE-2026-85626?
No fix has been published for CVE-2026-85626 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-85626 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-85626 exists.
Sources
Also known as GHSA-p58h-f635-vjjm.