• News/
  • https://www.theregister.com/2026/01/20/anthropic_prompt_injection_flaws/

Anthropic quietly fixed flaws in its Git MCP server that allowed for remote code execution

The Register
·
Jessica Lyons
·
Published Jan 20, 2026
·
Updated

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

Read full article

Affected Software

1 affected component
Anthropic mcp-server-git<2025.12.18
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

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.

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
Anthropic quietly fixed flaws in its Git MCP server that allowed for remote code execution - SecAlerts