Anthropic has fixed three bugs in its official Git MCP server that researchers say can be chained with other MCP tools to remotely execute malicious code or overwrite files via prompt injection. The Git MCP server, mcp-server-git, connects AI tools such as Copilot, Claude, and Cursor to Git repositories and the GitHub platform, allowing them to read repositories and code files, and automate workflows, all using natural language interactions. Agentic AI security startup Cyata found a way to exploit the vulnerabilities - a path validation bypass flaw (CVE-2025-68145), an unrestricted git_init issue (CVE-2025-68143), and an argument injection in git_diff (CVE-2025-68144) - and chain the Git MCP server with the Filesystem MCP server to achieve code execution. "Agentic systems break in unexpected ways when multiple components interact. Each MCP server might look safe in isolation, but combine two of them, Git and Filesystem in this case, and you get a toxic combination," Cyata security researcher Yarden Porat told The Register, adding that there's no indication that attackers exploited the bugs in the wild. "As organizations adopt more complex agentic systems with multiple tools and integrations, these combinations will multiply," Porat said. Cyata reported the three vulnerabilities to Anthropic in June, and the AI company fixed them in December. The flaws affect default deployments of mcp-server-git prior to 2025.12.18 - so make sure you're using the updated version. The Register...
Anthropic quietly fixed flaws in its Git MCP server that allowed for remote code execution
The Register
·Jessica Lyons
·Published Jan 20, 2026
·Updated
Affected Software
1 affected component
Anthropic mcp-server-git<2025.12.18
Frequently Asked Questions
1
What is the main topic of this article?
The article discusses the security vulnerabilities discovered in Anthropic's Git MCP server that allowed for remote code execution.
2
What security implications are discussed in the article?
The article outlines the risks of prompt injection flaws that can be exploited to execute malicious code or overwrite files.
3
What specific product is affected by these vulnerabilities?
The affected product is Anthropic's mcp-server-git.
4
How many bugs were fixed in the Git MCP server?
Three bugs were fixed in the Git MCP server.
5
What is a potential consequence of the prompt injection flaws mentioned?
A potential consequence is the ability for attackers to remotely execute arbitrary code.