提出 #779152: kazuph mcp-docs-rag <= 0.5.0 Command Injection情報

タイトルkazuph mcp-docs-rag <= 0.5.0 Command Injection
説明A command injection vulnerability exists in mcp-docs-rag due to unsafe use of child_process.execAsync when constructing Git and Wget commands with user-controlled input. Successful exploitation allows attackers to execute arbitrary shell commands with the privileges of the MCP server process. The following MCP tools construct command strings using user-supplied parameters and execute them via child_process.execAsync:  add_git_repository: interpolates repository_url and subdirectory parameters  add_text_file: interpolates file_url parameter Because execAsync invokes commands through a system shell, specially crafted input containing shell metacharacters (such as `;`, `&`, or `|`) may be interpreted as additional commands rather than treated as data. For example, an attacker could supply a malicious value in repository_url to inject arbitrary shell commands, which would then be executed with the privileges of the MCP server process. The vulnerability results from shell-based command execution combined with direct interpolation of untrusted input. In MCP environments, LLM-generated tool parameters influenced by external content may trigger execution of injected commands without direct local user interaction.
ソース⚠️ https://github.com/kazuph/mcp-docs-rag/issues/7
ユーザー
 Yinci Chen (UID 94659)
送信2026年03月13日 04:16 (20 日 ago)
モデレーション2026年03月27日 14:54 (14 days later)
ステータス承諾済み
VulDBエントリ353892 [kazuph mcp-docs-rag 迄 0.5.0 add_git_repository/add_text_file src/index.ts cloneRepository 特権昇格]
ポイント20

Want to know what is going to be exploited?

We predict KEV entries!