Claude HUD through 0.0.12, patched in commit 234d9aa, contains a command injection vulnerability that allows local attackers to execute arbitrary commands by manipulating the COMSPEC environment variable. Attackers can set COMSPEC to an arbitrary binary path before claude-hud performs its version check, causing execFile() to execute the attacker-supplied executable with cmd.exe arguments, resulting in arbitrary code execution on Windows systems.
Claude HUD versions through 0.0.12 contain a critical command injection vulnerability (CVE-2026-47092) affecting Windows systems. Local attackers can manipulate the COMSPEC environment variable to execute arbitrary commands during the application's version check process. While currently no public exploit exists, the vulnerability poses significant risk to organizations using this development tool, particularly those with shared Windows workstations or multi-tenant environments.
Immediate Actions:
1. Identify all Windows systems with Claude HUD installed using asset inventory tools
2. Restrict COMSPEC environment variable modifications through Group Policy (GPO) on domain-joined systems
3. Implement file integrity monitoring on COMSPEC registry keys and environment variables
4. Disable or uninstall Claude HUD 0.0.12 and earlier versions immediately
Patching Guidance:
1. Upgrade to Claude HUD version 0.0.13 or later (commit 234d9aa or newer)
2. Verify patch deployment across all development workstations
3. Test application functionality post-upgrade in isolated environment first
Compensating Controls (if upgrade delayed):
1. Restrict local administrator privileges on development workstations
2. Implement application whitelisting to prevent unauthorized executable execution
3. Monitor process creation events for suspicious cmd.exe spawning
4. Use Windows Defender Application Guard for isolated execution environments
Detection Rules:
1. Monitor for COMSPEC environment variable modifications: Registry path HKCU\Environment\COMSPEC or HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\COMSPEC
2. Alert on execFile() calls with suspicious COMSPEC values
3. Monitor for cmd.exe execution from unexpected parent processes
4. Track Claude HUD process execution with command-line argument logging
الإجراءات الفورية:
1. تحديد جميع أنظمة Windows التي تحتوي على Claude HUD المثبت باستخدام أدوات جرد الأصول
2. تقييد تعديلات متغير البيئة COMSPEC من خلال سياسة المجموعة (GPO) على الأنظمة المتصلة بالمجال
3. تنفيذ مراقبة سلامة الملفات على مفاتيح COMSPEC والمتغيرات البيئية
4. تعطيل أو إلغاء تثبيت Claude HUD 0.0.12 والإصدارات السابقة فوراً
إرشادات التصحيح:
1. الترقية إلى Claude HUD الإصدار 0.0.13 أو أحدث (commit 234d9aa أو أحدث)
2. التحقق من نشر التصحيح عبر جميع محطات عمل التطوير
3. اختبار وظائف التطبيق بعد الترقية في بيئة معزولة أولاً
الضوابط البديلة (إذا تأخر الترقية):
1. تقييد امتيازات المسؤول المحلي على محطات عمل التطوير
2. تنفيذ القائمة البيضاء للتطبيقات لمنع تنفيذ الملفات التنفيذية غير المصرح بها
3. مراقبة أحداث إنشاء العمليات للبحث عن cmd.exe المريب
4. استخدام Windows Defender Application Guard للبيئات المعزولة
قواعد الكشف:
1. مراقبة تعديلات متغير البيئة COMSPEC: مسار السجل HKCU\Environment\COMSPEC أو HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\COMSPEC
2. التنبيه على استدعاءات execFile() بقيم COMSPEC مريبة
3. مراقبة تنفيذ cmd.exe من العمليات الأب غير المتوقعة
4. تتبع تنفيذ عملية Claude HUD مع تسجيل معاملات سطر الأوامر