A vulnerability was detected in VetCoders mcp-server-semgrep 1.0.0. This affects the function analyze_results/filter_results/export_results/compare_results/scan_directory/create_rule of the file src/index.ts of the component MCP Interface. The manipulation of the argument ID results in os command injection. The attack can be executed remotely. The exploit is now public and may be used. Upgrading to version 1.0.1 is able to mitigate this issue. The patch is identified as 141335da044e53c3f5b315e0386e01238405b771. It is advisable to upgrade the affected component.
CVE-2026-7446 is a critical OS command injection vulnerability in VetCoders mcp-server-semgrep 1.0.0 affecting the MCP Interface component. The vulnerability allows remote attackers to execute arbitrary OS commands through manipulation of the ID argument in multiple functions (analyze_results, filter_results, export_results, compare_results, scan_directory, create_rule). With a CVSS score of 7.3 and public exploit availability, this poses an immediate threat to organizations using this component for code analysis and security scanning.
IMMEDIATE ACTIONS:
1. Identify all instances of mcp-server-semgrep 1.0.0 in your environment (development servers, CI/CD pipelines, security scanning infrastructure)
2. Isolate affected systems from network access if possible, or implement strict network segmentation
3. Review access logs and audit trails for suspicious activity or command execution patterns
4. Disable the MCP Interface component if not critical to operations
PATCHING GUIDANCE:
1. Upgrade to mcp-server-semgrep version 1.0.1 or later immediately
2. Apply patch 141335da044e53c3f5b315e0386e01238405b771 if available from vendor
3. Test patches in non-production environment before deployment
4. Implement change management procedures for all affected systems
COMPENSATING CONTROLS (if patching delayed):
1. Implement input validation and sanitization for all ID parameters - whitelist alphanumeric characters only
2. Run mcp-server-semgrep with minimal privileges (non-root user account)
3. Use Web Application Firewall (WAF) rules to block requests containing shell metacharacters (|, &, ;, $, `, etc.)
4. Implement strict firewall rules limiting access to MCP Interface ports
5. Enable command execution logging and monitoring
DETECTION RULES:
1. Monitor for process execution from mcp-server-semgrep process with suspicious command patterns
2. Alert on any ID parameter containing: pipe (|), ampersand (&), semicolon (;), backtick (`), dollar sign ($), parentheses
3. Log all function calls to analyze_results, filter_results, export_results, compare_results, scan_directory, create_rule
4. Monitor for unexpected child processes spawned by Node.js/mcp-server-semgrep
5. Implement SIEM rules for command injection attack patterns in application logs
الإجراءات الفورية:
1. تحديد جميع نسخ mcp-server-semgrep 1.0.0 في بيئتك (خوادم التطوير، خطوط أنابيب CI/CD، بنية الفحص الأمني)
2. عزل الأنظمة المتأثرة عن الوصول إلى الشبكة إن أمكن، أو تطبيق تقسيم شبكة صارم
3. مراجعة سجلات الوصول وسجلات التدقيق للنشاط المريب أو أنماط تنفيذ الأوامر
4. تعطيل مكون واجهة MCP إذا لم يكن حرجاً للعمليات
إرشادات التصحيح:
1. الترقية إلى إصدار mcp-server-semgrep 1.0.1 أو أحدث فوراً
2. تطبيق التصحيح 141335da044e53c3f5b315e0386e01238405b771 إذا كان متاحاً من المورد
3. اختبار التصحيحات في بيئة غير الإنتاج قبل النشر
4. تطبيق إجراءات إدارة التغيير لجميع الأنظمة المتأثرة
الضوابط التعويضية (إذا تأخر التصحيح):
1. تطبيق التحقق من صحة المدخلات والتطهير لجميع معاملات المعرف - قائمة بيضاء للأحرف الأبجدية الرقمية فقط
2. تشغيل mcp-server-semgrep بامتيازات دنيا (حساب مستخدم غير جذر)
3. استخدام قواعد جدار الحماية للتطبيقات (WAF) لحجب الطلبات التي تحتوي على أحرف shell الخاصة
4. تطبيق قواعد جدار الحماية الصارمة لتحديد الوصول إلى منافذ واجهة MCP
5. تفعيل تسجيل ومراقبة تنفيذ الأوامر
قواعد الكشف:
1. مراقبة تنفيذ العمليات من عملية mcp-server-semgrep بأنماط أوامر مريبة
2. التنبيه على أي معامل معرف يحتوي على: أنابيب (|)، علامة العطف (&)، فاصلة منقوطة (;)، علامة خلفية (`)
3. تسجيل جميع استدعاءات الدوال لـ analyze_results و filter_results و export_results و compare_results و scan_directory و create_rule
4. مراقبة العمليات الفرعية غير المتوقعة التي تم إنشاؤها بواسطة Node.js/mcp-server-semgrep
5. تطبيق قواعد SIEM لأنماط هجمات حقن الأوامر في سجلات التطبيقات