A vulnerability was found in 54yyyu code-mcp up to 4cfc4643541a110c906d93635b391bf7e357f4a8. The impacted element is the function git_operation of the file src/code_mcp/server.py of the component MCP Tool. Performing a manipulation of the argument operation results in command injection. The attack can be initiated remotely. The exploit has been made public and could be used. Continious delivery with rolling releases is used by this product. Therefore, no version details of affected nor updated releases are available. The project was informed of the problem early through an issue report but has not responded yet.
A command injection vulnerability exists in the git_operation function of code-mcp's MCP Tool component, allowing remote attackers to execute arbitrary commands by manipulating the operation argument. The vulnerability affects versions up to commit 4cfc4643541a110a906d93635b391bf7e357f4a8 with no patched version currently available.
ثغرة حقن الأوامر في دالة git_operation بمكون MCP Tool في code-mcp تسمح للمهاجمين البعيدين بتنفيذ أوامر نظام تعسفية من خلال التلاعب بمعاملات العملية. الثغرة لم يتم إصلاحها بعد والمشروع لم يستجب لتقارير الأمان. قد يؤدي الاستغلال إلى الوصول الكامل للنظام والتحكم به.
ثغرة حقن الأوامر موجودة في دالة git_operation في مكون MCP Tool الخاص بـ code-mcp، مما يسمح للمهاجمين البعيدين بتنفيذ أوامر تعسفية من خلال التلاعب بمعامل العملية. تؤثر الثغرة على الإصدارات حتى الالتزام 4cfc4643541a110a906d93635b391bf7e357f4a8 مع عدم توفر نسخة مصححة حالياً.
Immediately discontinue use of affected code-mcp versions and monitor the project repository for security patches. Implement input validation and sanitization for all git operation parameters, restrict MCP Tool access to trusted networks only, and consider using containerization with minimal privileges. Apply principle of least privilege and disable git operations if not required.
توقف فوراً عن استخدام إصدارات code-mcp المتأثرة ومراقبة مستودع المشروع للحصول على تصحيحات الأمان. تطبيق التحقق من صحة المدخلات وتنظيفها لجميع معاملات عملية git، تقييد الوصول إلى أداة MCP للشبكات الموثوقة فقط، والنظر في استخدام الحاويات بامتيازات محدودة. تطبيق مبدأ أقل امتياز وتعطيل عمليات git إذا لم تكن مطلوبة.