| Field | Value |
|---|---|
| CVE / NVD | CVE-2026-113378 |
| Date (index) | 2026-10-20 |
| Affected product (index) | mcollina mcp-ripgrep Advanced Search Tool index.ts os command injection |
| GHSA ID | None published |
| OWASP MCP Top 10 (2025) | MCP05 — Command Injection & Execution |
| Published / disclosed | 2026-10-20 |
| Ecosystem | Source repository |
| Component | mcollina/mcp-ripgrep |
| EPSS score | 0.008360000 (FIRST EPSS, 2026-11-09) |
| CVSS score | 4.8 MEDIUM CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P |
| CWE | CWE-78, CWE-77 |
| Affected versions | 0.1; 0.2; 0.3; 0.4.0 |
| Fixed versions | None named in the published CVE record |
| Fix status | No fixed version in the published CVE record |
| Exploit status | Public advisory. This note does not include exploit steps. |
| Notes | Updated on 2026-11-09 from the published CVE record and FIRST EPSS. |
A security flaw has been discovered in mcollina mcp-ripgrep up to 0.4.0. Affected is an unknown function of the file src/index.ts of the component Advanced Search Tool. The manipulation of the argument fileType results in os command injection. The attack requires a local approach. The exploit has been released to the public and may be used for attacks. The real existence of this vulnerability is still doubted at the moment. The code’s own escapeShellArg on sibling arguments (skipped only for fileType) indicates that this is a CWE-78 oversight, not a documented design. The project maintainer cites the documentation: “This MCP server executes shell commands using the ripgrep tool. While efforts have been made to safely escape arguments, use caution when providing input, as it runs commands on your machine.”
Depends on deployment. Typical MCP cases are a reachable HTTP or SSE listener, a malicious remote MCP server, a poisoned project configuration, or a person opening attacker-influenced content. Developer workstations and shared runners are high-value when the server runs with host access.
The published weakness mapping is CWE-78, CWE-77. Use the linked advisory for the upstream root cause.
MCP connects a model to tools, files, and credentials on a host or network. A flaw in transport checks, path checks, command handling, or token binding can become code execution, credential exposure, or access to another user’s session.
File and function names belong in the linked upstream advisory and patch. This index does not repeat exploit inputs.
Apply the vendor’s patched release or commit. Until then, keep the affected MCP listener off untrusted networks and require authentication on HTTP transports.