CVE-2026-5007 Details
Description
A vulnerability was identified in kazuph mcp-docs-rag up to 0.5.0. Affected is the function cloneRepository of the file src/index.ts of the component add_git_repository/add_text_file. The manipulation leads to os command injection. The attack needs to be performed locally. The exploit is publicly available and might be used. The project was informed of the problem early through an issue report but has not responded yet.
A command injection vulnerability exists in Kazuph MCP-Docs-RAG versions through 0.5.0. The issue arises in the 'cloneRepository' function within 'src/index.ts', specifically in the 'add_git_repository' and 'add_text_file' components. The vulnerability allows for arbitrary OS command execution by manipulating user-controlled input, which is then executed with the same privileges as the MCP server process. This exploitation must be performed locally, and a public proof-of-concept is available.
It is recommended to avoid using 'exec' for command execution. Instead, use 'execFile', which allows for safer command execution by treating arguments as separate elements. Additionally, implement strict input validation for parameters exposed to MCP clients, particularly 'repository_url', 'subdirectory', and 'file_url', to prevent injection attacks.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Mar 28, 2026CISA-ADP
Assessed Apr 1, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/kazuph/mcp-docs-rag/ | [email protected] | ProductSource CodeVendor |
| https://github.com/kazuph/mcp-docs-rag/issues/7 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/user-attachments/files/25822451/mcp-docs-rag_bug.pdf | [email protected] | |
| https://vuldb.com/submit/779152 | [email protected] | Technical Description |
| https://vuldb.com/vuln/353892 | [email protected] | AdvisoryExploitPartial Content |
| https://vuldb.com/vuln/353892/cti | [email protected] | Content Wall |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-77 | Improper Neutralization of Special Elements used in a Command ('Command Injection') | [email protected] |
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| kazuph mcp-docs-rag | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Mar 28, 2026 | New CVE Received | [email protected] |
Volerion