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.
CVE-2026-5007 is an OS command injection vulnerability in kazuph mcp-docs-rag versions up to 0.5.0 affecting the cloneRepository function in src/index.ts. The vulnerability requires local access and has publicly available exploits, though it remains unpatched by the project maintainers.
يؤثر هذا الضعف على دالة cloneRepository في مكون add_git_repository/add_text_file حيث يمكن للمهاجمين المحليين تنفيذ أوامر نظام التشغيل التعسفية من خلال معاملات غير معالجة بشكل صحيح. الاستغلال يتطلب وصول محلي والأداة لم تتلق تصحيح من المطورين رغم الإخطار المبكر.
A command injection flaw exists in kazuph mcp-docs-rag up to version 0.5.0 in the cloneRepository function that allows local attackers to execute arbitrary OS commands. The vulnerability is publicly disclosed with available exploits and the project has not yet released a patch.
Upgrade kazuph mcp-docs-rag to version 0.5.1 or later when available. Implement strict input validation and sanitization for all git repository parameters. Restrict local access to the application and use principle of least privilege for service accounts running this component. Monitor for suspicious command execution patterns.
قم بترقية kazuph mcp-docs-rag إلى الإصدار 0.5.1 أو أحدث عند توفره. طبق التحقق الصارم من صحة المدخلات وتنظيفها لجميع معاملات مستودع git. قيد الوصول المحلي للتطبيق واستخدم مبدأ أقل امتياز لحسابات الخدمة. راقب أنماط تنفيذ الأوامر المريبة.