Description
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."
Published: 2026-10-20
Score: 4.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: OS Command Injection
Action: Assess Impact
AI Analysis

Impact

A flaw exists in the Advanced Search Tool component of mcollina's mcp-ripgrep. A local attacker can influence the fileType argument passed to the module's src/index.ts file, causing the tool to construct and execute an OS command without proper escaping. This results in command injection, allowing arbitrary shell commands to run on the host. If exploited, the attacker could gain complete control over the target system, compromising confidentiality, integrity, and availability.

Affected Systems

The vulnerability exists in the mcollina mcp-ripgrep package up to and including version 0.4.0. System administrators should verify whether their deployments run this version of the vendor's product and plan updates accordingly.

Risk and Exploitability

The CVSS score of 4.8 indicates a moderate severity. The EPSS score of less than 1% signals a very low probability of exploitation in the wild, yet the exploit code has been publicly released, and the issue is classified as an OS command injection. Because the flaw requires a local approach, the attacker must have some local access to the machine; there is no evidence that remote exploitation is possible at this time. The vulnerability is not indexed in the CISA KEV catalog and is not listed as a known exploited vulnerability by official sources.

Generated by OpenCVE AI on October 20, 2026 at 15:47 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade mcp-ripgrep to the latest release after 0.4.0 or apply the upstream patch that escapes fileType arguments.
  • If an upgrade is not immediately feasible, restrict the fileType parameter to a whitelist of safe values and sanitize any user input before it reaches the tool.
  • Disable or remove the Advanced Search Tool feature until a secure version is in place, ensuring that no untrusted input can trigger ripgrep execution.

Generated by OpenCVE AI on October 20, 2026 at 15:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 20 Oct 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 20 Oct 2026 12:45:00 +0000

Type Values Removed Values Added
Description 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."
Title mcollina mcp-ripgrep Advanced Search Tool index.ts os command injection
First Time appeared Mcollina
Mcollina mcp-ripgrep
Weaknesses CWE-77
CWE-78
CPEs cpe:2.3:a:mcollina:mcp-ripgrep:*:*:*:*:*:*:*:*
Vendors & Products Mcollina
Mcollina mcp-ripgrep
References
Metrics cvssV2_0

{'score': 4.3, 'vector': 'AV:L/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:C'}

cvssV3_0

{'score': 5.3, 'vector': 'CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:C'}

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:C'}

cvssV4_0

{'score': 4.8, 'vector': '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'}


Subscriptions

Mcollina Mcp-ripgrep
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-10-24T00:13:32.107Z

Reserved: 2026-10-20T04:21:50.525Z

Link: CVE-2026-113378

cve-icon Vulnrichment

Updated: 2026-10-20T13:45:38.847Z

cve-icon NVD

Status : Deferred

Published: 2026-10-20T10:17:05.033

Modified: 2026-10-20T19:27:34.430

Link: CVE-2026-113378

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-21T16:46:11Z

Weaknesses
  • CWE-77

    Improper Neutralization of Special Elements used in a Command ('Command Injection')

  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')