Ollama MCP Server execAsync Command Injection Remote Code Execution Vulnerability
Vulnerability
A remote code execution vulnerability has been identified in Ollama MCP Server. This issue arises from the execAsync method's improper validation of user-supplied strings before they are used in system calls, allowing remote attackers to execute arbitrary code on the affected system. The executed code runs under the service account's context. Notably, no authentication is required to exploit this vulnerability.
Impact
Exploitation of this vulnerability allows for arbitrary code execution on the affected server, with the executed code running in the context of the service account.
Remediation
Given the nature of this vulnerability, the recommended mitigation strategy is to limit interaction with the affected product.
Vulnerability Rating
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.
