OpenClaw before 2026.3.28 contains a privilege escalation vulnerability in the /pair approve command path that fails to forward caller scopes into the core approval check. A caller with pairing privileges but without admin privileges can approve pending device requests asking for broader scopes including admin access by exploiting the missing scope validation in extensions/device-pair/index.ts and src/infra/device-pairing.ts.
OpenClaw versions before 2026.3.28 contain a critical privilege escalation vulnerability in the device pairing approval mechanism that allows users with limited pairing privileges to approve requests granting admin-level access. The vulnerability stems from missing scope validation in the approval workflow, enabling unauthorized privilege elevation. This poses significant risk to organizations using OpenClaw for device management and access control.
1. IMMEDIATE ACTIONS:
- Audit all device pairing approval logs for suspicious admin-level approvals from non-admin users
- Revoke any suspicious admin access granted through device pairing in the past 90 days
- Restrict device pairing approval permissions to verified admin accounts only
2. PATCHING:
- Upgrade OpenClaw to version 2026.3.28 or later immediately
- Apply patches to extensions/device-pair/index.ts and src/infra/device-pairing.ts
- Test patch deployment in staging environment before production rollout
3. COMPENSATING CONTROLS (if immediate patching not possible):
- Implement additional approval layer requiring separate admin verification for scope elevation requests
- Enable comprehensive audit logging for all device pairing approval activities
- Restrict device pairing approval functionality to dedicated admin accounts
- Implement scope validation at application entry points independent of approval module
4. DETECTION:
- Monitor for /pair approve command executions with scope elevation parameters
- Alert on admin-level scope approvals from non-admin user accounts
- Track device pairing requests requesting admin scopes and their approval status
- Review approval logs for users with pairing but not admin privileges approving elevated scopes
1. الإجراءات الفورية:
- تدقيق جميع سجلات الموافقة على إقران الأجهزة للبحث عن موافقات مريبة على مستوى المسؤول من مستخدمين غير إداريين
- إلغاء أي وصول مريب على مستوى المسؤول تم منحه من خلال إقران الأجهزة في آخر 90 يوماً
- تقييد صلاحيات الموافقة على إقران الأجهزة للحسابات الإدارية المتحققة فقط
2. التصحيح:
- ترقية OpenClaw إلى الإصدار 2026.3.28 أو أحدث فوراً
- تطبيق التصحيحات على extensions/device-pair/index.ts و src/infra/device-pairing.ts
- اختبار نشر التصحيح في بيئة التجريب قبل نشره في الإنتاج
3. الضوابط البديلة (إذا لم يكن التصحيح الفوري ممكناً):
- تنفيذ طبقة موافقة إضافية تتطلب التحقق الإداري المنفصل لطلبات تصعيد النطاق
- تفعيل تسجيل التدقيق الشامل لجميع أنشطة الموافقة على إقران الأجهزة
- تقييد وظيفة الموافقة على إقران الأجهزة للحسابات الإدارية المخصصة
- تنفيذ التحقق من النطاق في نقاط دخول التطبيق بشكل مستقل عن وحدة الموافقة
4. الكشف:
- مراقبة تنفيذ أوامر /pair approve مع معاملات تصعيد النطاق
- تنبيهات الموافقات على مستوى المسؤول من حسابات غير إدارية
- تتبع طلبات إقران الأجهزة التي تطلب نطاقات المسؤول وحالة موافقتها
- مراجعة سجلات الموافقة للمستخدمين الذين لديهم امتيازات إقران وليس إدارية يوافقون على نطاقات مرتفعة