OpenClaw before 2026.3.31 contains a symlink following vulnerability in SSH sandbox tar upload that allows remote attackers to write arbitrary files. Attackers can exploit this by uploading tar archives containing symlinks to escape the sandbox and overwrite files on the remote host.
OpenClaw before version 2026.3.31 contains a critical symlink following vulnerability in its SSH sandbox tar upload functionality that allows remote attackers to write arbitrary files on affected systems. Attackers can craft malicious tar archives containing symlinks to escape sandbox restrictions and overwrite sensitive files, potentially leading to system compromise. This vulnerability affects Node.js-based deployments and requires immediate patching to prevent unauthorized file modification and potential privilege escalation.
IMMEDIATE ACTIONS:
1. Identify all systems running OpenClaw versions prior to 2026.3.31 across your infrastructure
2. Restrict SSH access to OpenClaw services to trusted IP ranges only
3. Disable tar upload functionality if not actively required
4. Monitor file system changes in directories where OpenClaw processes uploads
PATCHING GUIDANCE:
1. Upgrade OpenClaw to version 2026.3.31 or later immediately
2. Test patches in non-production environments first
3. Implement staged rollout to minimize service disruption
4. Verify symlink handling is properly restricted post-patch
COMPENSATING CONTROLS (if immediate patching not possible):
1. Run OpenClaw in a restricted container with read-only root filesystem
2. Use AppArmor or SELinux to prevent symlink creation in upload directories
3. Implement file integrity monitoring (AIDE, Tripwire) on critical system files
4. Use chroot jails to isolate OpenClaw processes
DETECTION RULES:
1. Monitor for tar archives containing symlinks in upload traffic
2. Alert on file modifications outside expected OpenClaw directories
3. Track failed SSH authentication attempts to OpenClaw services
4. Monitor for unusual file ownership changes in system directories
الإجراءات الفورية:
1. تحديد جميع الأنظمة التي تقوم بتشغيل إصدارات OpenClaw السابقة للإصدار 2026.3.31 عبر البنية التحتية الخاصة بك
2. تقييد وصول SSH إلى خدمات OpenClaw إلى نطاقات IP موثوقة فقط
3. تعطيل وظيفة تحميل tar إذا لم تكن مطلوبة بنشاط
4. مراقبة تغييرات نظام الملفات في الدلائل حيث تعالج OpenClaw التحميلات
إرشادات التصحيح:
1. ترقية OpenClaw إلى الإصدار 2026.3.31 أو أحدث على الفور
2. اختبار التصحيحات في بيئات غير الإنتاج أولاً
3. تنفيذ طرح مرحلي لتقليل انقطاع الخدمة
4. التحقق من أن معالجة الروابط الرمزية مقيدة بشكل صحيح بعد التصحيح
الضوابط البديلة (إذا لم يكن التصحيح الفوري ممكنًا):
1. تشغيل OpenClaw في حاوية مقيدة مع نظام ملفات جذر للقراءة فقط
2. استخدام AppArmor أو SELinux لمنع إنشاء الروابط الرمزية في دلائل التحميل
3. تنفيذ مراقبة سلامة الملفات (AIDE، Tripwire) على ملفات النظام الحرجة
4. استخدام أقفاص chroot لعزل عمليات OpenClaw
قواعد الكشف:
1. مراقبة أرشيفات tar التي تحتوي على روابط رمزية في حركة التحميل
2. تنبيه تعديلات الملفات خارج دلائل OpenClaw المتوقعة
3. تتبع محاولات المصادقة الفاشلة SSH لخدمات OpenClaw
4. مراقبة تغييرات ملكية الملفات غير العادية في دلائل النظام