| Product | Ollama MCP Server A third-party product. The advisory mentions Ollama, but this is not a vulnerability in it: it is not counted in its CVEs. |
| Severity | critical (CVSS 9.8) |
| CVSS vector | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published (NVD) | 2026-01-23 |
| Last modified | 2026-06-17 |
| Affected versions | not published yet, see the advisory |
| Fixed in | see the vendor advisory |
| Weakness | CWE-78 |
| CISA KEV | not listed |
NVD description
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. Was ZDI-CAN-27683.
What to do
- No fixed release is known yet: follow the vendor advisory below and keep Ollama MCP Server off the public internet until a fix ships.
- Do not expose the component's API or UI to the internet without authentication in front of it.