# CVE-2026-113378: mcollina mcp-ripgrep Advanced Search Tool index.ts os command injection

- Severity: Medium 4.8 (CVSS:4.0, scored by VulDB) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.84%, higher than 58% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-20T09:30:14.745Z
- Modified: 2026-10-24T00:13:32.107Z
- Weaknesses: CWE-77, CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: 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."

(As written by CVE List.)

## Affected

- mcollina mcp-ripgrep: 0.1; 0.2; 0.3; 0.4.0

## Every score

- VulDB: CVSS:4.0 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`
- VulDB: CVSS:3.1 5.3 Medium `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`
- VulDB: CVSS:3.0 5.3 Medium `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`
- VulDB: CVSS:2.0 4.3 Medium `AV:L/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:C`

## References

- <https://gist.github.com/sandh0t/45fdee24a7907e0cd836aed26f2d5a7a/> (exploit)
- <https://vuldb.com/vuln/422653> (technical-description, vdb-entry)
- <https://vuldb.com/vuln/422653/cti> (permissions-required, signature)
- <https://vuldb.com/cve/CVE-2026-113378> (third-party-advisory)
- <https://vuldb.com/submit/990464> (third-party-advisory)
- <https://github.com/mcollina/mcp-ripgrep#security-considerations> (related)

## Sources

- CVE List: [CVE-2026-113378](https://www.cve.org/CVERecord?id=CVE-2026-113378), CVE Terms of Use, modified 2026-10-24
- NVD: [CVE-2026-113378](https://nvd.nist.gov/vuln/detail/CVE-2026-113378), Public domain, modified 2026-10-20

---

Page: https://cve.day/CVE-2026-113378 · Whole record: https://cve.day/CVE-2026-113378.json · Rebuilt by cve.day 2026-11-25T22:59:46.007Z
