Critical Flaws Found in Anthropic’s AI Git Server

Article Highlights
Off On

The growing integration of artificial intelligence into critical workflows has quietly introduced a new and formidable class of security risks, as recent research demonstrates how manipulating an AI’s conversational input can lead to a full-scale compromise of its underlying server infrastructure. A detailed investigation has uncovered a trio of severe vulnerabilities within Anthropic’s official software designed to connect its AI models to the Git version control system. These flaws create a direct pathway for attackers to escalate a simple prompt injection attack into unauthorized code execution, posing a significant threat to organizations leveraging these advanced AI tools.

The discovery, detailed by researchers from the cybersecurity firm Cyata, serves as a crucial wake-up call for the industry. It highlights a perilous gap between the abstract decision-making processes of a Large Language Model (LLM) and the tangible, real-world actions it can perform. When an LLM is granted the ability to interact with tools like Git through a flawed protocol, it can be tricked into becoming an unwitting accomplice, executing commands that compromise the very systems it is meant to serve. The findings underscore a pressing need for a more holistic approach to AI security, one that extends beyond the model itself to the entire ecosystem of integrated tools and protocols.

Exposing a New Attack Vector in AI Tool Integration

This research zeroes in on the discovery of three critical, universally applicable vulnerabilities within Anthropic’s official Git Model Context Protocol (MCP) Server. Unlike previous security issues that required specific, non-default configurations, these flaws affect any organization using the software out-of-the-box. The investigation successfully demonstrates that a well-crafted prompt injection, a technique where an attacker embeds malicious instructions within the data fed to an AI, can be used to exploit these server-side weaknesses directly.

The central challenge addressed is how this classic web security attack can be weaponized in a modern AI context. The research establishes a clear exploit chain where malicious input causes the LLM to invoke a connected tool with dangerous, attacker-controlled arguments. This allows a threat actor to bypass security controls, execute unauthorized commands, and ultimately compromise the integrity of the AI system and its host environment. Consequently, what begins as a manipulation of language can escalate into a severe breach with tangible operational consequences.

The Context and Significance of AI Server Security

This investigation is set against the backdrop of a major technological shift, where LLMs are increasingly being connected to external tools and data sources. Protocols like MCP are designed to be the bridge that allows an AI assistant to move beyond simple conversation and perform complex tasks, such as reading files, interacting with databases, or managing code repositories. This capability is transformative, but as the research shows, it also creates a new and highly sensitive attack surface. The findings are critical because they expose a significant security risk in the connective tissue linking an AI’s cognitive functions to its ability to act in the real world. The vulnerabilities affect the default configuration, meaning a wide range of organizations deploying these advanced AI assistants could be at immediate risk without having made any custom, insecure modifications. This transforms a theoretical concern about AI safety into a practical and urgent security threat, impacting any entity relying on this integrated technology.

Research Methodology, Findings, and Implications

Methodology

Researchers from the cybersecurity firm Cyata employed a methodology centered on a combination of rigorous security analysis and controlled exploitation. The initial phase involved a detailed code review of the mcp-server-git package, a process that allowed the team to identify fundamental weaknesses in how the server handled user-supplied data, specifically in the areas of input sanitization and directory path validation.

Following the identification of these potential weak points, the researchers crafted a series of targeted prompt injection attacks. This second phase was designed to demonstrate a practical exploitation path, proving that an LLM could be manipulated through its natural language interface to trigger the identified vulnerabilities. By carefully constructing prompts, they were able to make the AI agent invoke the server’s tools with malicious arguments, leading to the successful execution of unauthorized commands on the underlying system.

Findings

The investigation uncovered three specific vulnerabilities—cataloged as CVE-2025-68143, CVE-2025-68145, and CVE-2025-68144—affecting all default installations of the mcp-server-git package prior to the patched version. A key finding was the ability for an attacker to create unauthorized Git repositories in arbitrary locations on the file system due to improper path validation. This could be used to stage malicious files for later execution.

Furthermore, the research revealed a critical argument injection flaw that allowed attackers to bypass path validation entirely, enabling access to sensitive directories that should have been off-limits. Most severely, this vulnerability permitted the injection of arbitrary command-line arguments into Git commands, a vector that could be leveraged for file manipulation and, ultimately, remote code execution. The researchers also identified that a “toxic combination” of running both the Git and Filesystem MCP servers concurrently dramatically expanded the attack surface, creating a scenario of critical risk.

Implications

The practical implications of these discoveries are severe, as they establish a viable and previously undemonstrated pathway for attackers to escalate a prompt injection attack into a full system compromise. This moves the threat model for LLMs from data leakage or misinformation generation to direct control over the infrastructure hosting the AI. These findings serve as a stark warning that the integration of powerful, agentic AIs with external tools creates a high-value and uniquely vulnerable target.

This research underscores the urgent need for a fundamental shift in how the security of AI-adjacent infrastructure is approached. It is no longer sufficient to focus solely on the security of the LLM itself, such as preventing jailbreaks or biased outputs. Instead, security practices must evolve to encompass the entire ecosystem, including the protocols, servers, and tools that grant the AI its agency. This perspective mandates a more comprehensive security posture that treats the connective infrastructure with the same rigor as any other critical application.

Reflection and Future Directions

Reflection

The study’s process was marked by a lengthy and complex disclosure timeline, which lasted several months in 2025. This experience highlights a significant challenge in the current landscape: communicating novel and intricate AI-related vulnerabilities to vendors who may not yet have established processes for handling such reports. The initial reports required further clarification to demonstrate the full impact of a prompt-injection-based exploit.

A critical turning point in the research and disclosure process was the realization that these flaws affected out-of-the-box installations. Unlike previous security issues in the ecosystem that required non-standard or insecure user configurations, the universal applicability of this exploit chain elevated its severity immensely. This entire experience reflects the maturing, yet still nascent, state of AI vulnerability research and points to a clear need for more streamlined and effective industry-wide processes for reporting and remediation.

Future Directions

Looking forward, defensive strategies must evolve beyond simply patching immediate vulnerabilities and instead focus on a multi-layered, architectural approach to security. Preventing similar exploits in the future requires a shift toward building inherently more resilient systems that anticipate and mitigate the risks of AI agentic behavior. This involves a proactive, defense-in-depth security model rather than a reactive one. Key directions for future work include the strict enforcement of the principle of least privilege, ensuring that AI agents and their associated tools have the absolute minimum permissions necessary to perform their intended functions. Additionally, the development of more robust input and path validation libraries specifically designed for the unique challenges of AI tool integration is essential. Organizations should also prioritize restricting AI tool functionality by default and enhancing logging and monitoring capabilities to rapidly detect and respond to anomalous agent behavior, thereby creating a more defensible AI ecosystem.

A Mandate for Defense-in-Depth AI Security

In summary, the discovery of these critical flaws in Anthropic’s Git MCP Server demonstrated a significant and tangible threat to organizations deploying integrated AI systems. The research affirmed that as AI becomes more capable and autonomous, the security of its connective infrastructure is not just important but paramount. An AI’s ability to act upon the world is entirely dependent on these external tools, and if that bridge is insecure, the entire system is compromised.

This work contributed a crucial perspective to the field of AI security, shifting the focus from the theoretical manipulation of a model’s output to the practical compromise of its operational environment. The findings presented a clear mandate for a proactive, defense-in-depth security posture. This approach must combine timely software updates with rigorous architectural controls and continuous monitoring to build resilient AI deployments that are safeguarded against the inevitable rise of sophisticated, AI-centric attacks.

Explore more

How Will Vietnam Lead ASEAN’s Shift From 5G to 6G?

The silicon-laden landscape of Southeast Asia is currently witnessing a profound metamorphosis as Vietnam transitions from being a passive consumer of global technology to an assertive architect of its own digital destiny. The narrative of regional connectivity is no longer confined to the deployment of fiber-optic cables or the installation of basic cell towers; instead, it is about the mastery

Ericsson and Telia Partner to Lead Sweden’s Shift to 6G

Deep in the heart of Stockholm, a silent revolution is unfolding as Swedish engineers lay the groundwork for a network capable of connecting billions of sensors and machines with near-instantaneous precision. Sweden is positioning itself to leapfrog the global telecommunications curve, moving beyond the current capabilities of 5G to define the architecture of 6G before international standards are even finalized.

Stablecoins Become Essential to Corporate Finance Strategy

A corporate treasurer in New York can now settle a multi-million dollar supplier invoice with a partner in Singapore at three in the morning on a Sunday without waiting for the traditional banking gates to swing open. This seamless interaction represents a departure from the historical constraints of global commerce, where the movement of value lagged behind the instant nature

How Is Embedded Finance Reshaping the ISV Business Model?

The once-rigid wall separating a business’s operational software and its financial ledger has effectively crumbled as code now functions as a bank. For years, Independent Software Vendors (ISVs) treated payments as a “plug-in” afterthought—a necessary but separate utility handled by third-party gateways. Today, that model is being replaced by a reality where the software itself is the financial institution. As

How to Manage Days of Inventory in Business Central

A warehouse full to the rafters might look like a sign of plenty, but for many businesses, those stationary pallets represent a dangerous evaporation of essential working capital. This specific disconnect serves as a persistent friction point where different departments often fail to find a common language regarding the actual utility of their assets. While a simple stock balance provides

Fill out the form below