{"id":"CVE-2026-113378","title":"mcollina mcp-ripgrep Advanced Search Tool index.ts os command injection","summary":"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 inje…","severity":"medium","cvss":5.3,"cvssVector":"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","cvssSource":"cna","cwe":["CWE-78","CWE-77"],"vendor":"mcollina","product":"mcp-ripgrep","affected":["mcp-ripgrep 0.1","mcp-ripgrep 0.2","mcp-ripgrep 0.3","mcp-ripgrep 0.4.0"],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-20T13:45:26.471028Z"},"exploitAvailable":true,"published":"2026-10-20","updated":"2026-10-20","sourceUpdated":"2026-10-20T13:45:42.945Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-113378","references":[{"url":"https://vuldb.com/vuln/422653","label":"VDB-422653 | mcollina mcp-ripgrep Advanced Search Tool index.ts os command injection"},{"url":"https://vuldb.com/vuln/422653/cti","label":"VDB-422653 | CTI Indicators (IOB, IOC, TTP, IOA)"},{"url":"https://vuldb.com/cve/CVE-2026-113378","label":"CVE-2026-113378 | CVE Analysis and Report"},{"url":"https://vuldb.com/submit/990464","label":"Submit #990464 | mcollina mcp-ripgrep Latest OS Command Injection"},{"url":"https://gist.github.com/sandh0t/45fdee24a7907e0cd836aed26f2d5a7a/"},{"url":"https://github.com/mcollina/mcp-ripgrep#security-considerations"}],"tags":["cve.org","exploit-available"],"ingestedAt":"2026-10-20T12:05:07.347Z","slug":"CVE-2026-113378","body":"## Overview\n\nA 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.\"\n\n## Affected\n\n- `mcp-ripgrep 0.1`\n- `mcp-ripgrep 0.2`\n- `mcp-ripgrep 0.3`\n- `mcp-ripgrep 0.4.0`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"twilight","depthScore":41,"depthScoreParts":{"impact":29.2,"likelihood":0,"exploitation":12,"ransomware":0},"changes":[{"seq":225868,"id":"CVE-2026-113378","ts":1792505323476,"field":"exploit_available","old":"false","new":"true"}]}