ZDI-26-020: (0Day) Ollama MCP Server execAsync Command Injection Remote Code Execution Vulnerability
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Ollama MCP Server. Authentication is not required to exploit this vulnerability. The specific flaw exists within the implementation of the execAsync method. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of the service account.
Other sources
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Ollama MCP Server. Authentication is not required to exploit this vulnerability. The ZDI has assigned a CVSS rating of 9.8. The following CVEs are assigned: CVE-2025-15063.
— ZDI
Affected Software
Event History
Frequently Asked Questions
What is the severity of ZDI-26-020?
ZDI-26-020 is classified as a high severity vulnerability due to its potential for remote code execution.
How do I fix ZDI-26-020?
To mitigate ZDI-26-020, ensure that you apply the latest patches and updates provided by Ollama for the MCP Server.
What systems are affected by ZDI-26-020?
ZDI-26-020 affects installations of the Ollama MCP Server without requiring authentication to exploit.
Can ZDI-26-020 be exploited remotely?
Yes, ZDI-26-020 allows remote attackers to execute arbitrary code on vulnerable systems.
Is authentication required to exploit ZDI-26-020?
No, authentication is not required to exploit the ZDI-26-020 vulnerability.