CVE-2026-113378
Received Received - Intake

Command Injection in mcp-ripgrep via fileType Argument

Vulnerability report for CVE-2026-113378, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-10-20

Last updated on: 2026-10-20

Assigner: VulDB

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."

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-10-20
Last Modified
2026-10-20
Generated
2026-10-20
AI Q&A
2026-10-20
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 4 associated CPEs
Vendor Product Version / Range
mcollina mcp-ripgrep 0.1
mcollina mcp-ripgrep 0.2
mcollina mcp-ripgrep 0.3
mcollina mcp-ripgrep 0.4.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-78 The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
CWE-77 The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a command injection flaw in the mcp-ripgrep MCP Server up to version 0.4.0. The issue occurs in the Advanced Search Tool where the fileType input parameter is not properly sanitized. Attackers can manipulate this parameter to inject arbitrary system commands, which are then executed with the privileges of the server process. The vulnerability exists because the server uses unvalidated user input directly in shell commands with shell: true enabled.

Detection Guidance

To detect this vulnerability, check if the mcp-ripgrep server is running and inspect network traffic for requests containing the fileType parameter with suspicious values like js`id>/tmp/PWNED` or other shell metacharacters. Use commands like netstat or ss to verify server processes and tcpdump or Wireshark to monitor for crafted input.

Impact Analysis

If exploited, this vulnerability could allow attackers to execute arbitrary commands on your system with the privileges of the mcp-ripgrep server process. This could lead to unauthorized access, data theft, or system compromise. Attackers might gain control over your machine, install malware, or exfiltrate sensitive information. The attack requires local access but can be triggered through crafted requests via tools like MCP Inspector.

Compliance Impact

This vulnerability could lead to data breaches, which may violate compliance requirements under GDPR (data protection) and HIPAA (health information privacy). Organizations could face fines or legal penalties for failing to protect sensitive data. The risk of unauthorized command execution undermines security controls required by these regulations.

Mitigation Strategies

Immediately stop using the mcp-ripgrep server or update it to a patched version. If no patch is available, disable the advanced-search tool or restrict access to trusted users only. Avoid using child_process.spawn with shell: true and untrusted input. Validate fileType to only allow expected characters (letters, numbers, underscores, plus, hyphens).

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-113378. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart