OpenClaw before 2026.3.11 contains a sandbox boundary bypass vulnerability in the fs-bridge writeFile commit step that uses an unanchored container path during the final move operation. An attacker can exploit a time-of-check-time-of-use race condition by modifying parent paths inside the sandbox to redirect committed files outside the validated writable path within the container mount namespace.
CVE-2026-32977 is a sandbox boundary bypass vulnerability in OpenClaw's file system bridge that allows attackers to exploit a race condition (TOCTOU) to write files outside intended sandbox boundaries. While currently unpatched and without public exploits, the vulnerability poses a medium risk (CVSS 6.3) to containerized environments. Organizations using OpenClaw for file operations in restricted environments should immediately implement compensating controls and monitor for exploitation attempts.
Immediate Actions:
1. Identify all OpenClaw deployments in your environment and document versions prior to 2026.3.11
2. Restrict file system permissions on container mount points to principle of least privilege
3. Implement strict access controls on parent directory paths that OpenClaw processes
4. Enable audit logging for all file operations within OpenClaw containers
Compensating Controls (until patch available):
5. Deploy SELinux or AppArmor policies to restrict OpenClaw process capabilities and file access
6. Use read-only root filesystems where possible; mount only necessary directories as writable
7. Implement file integrity monitoring (FIM) on critical directories to detect unauthorized writes
8. Run OpenClaw containers with minimal privileges (non-root user, dropped capabilities)
9. Use network segmentation to isolate containers running OpenClaw from sensitive systems
10. Monitor for suspicious symlink creation or parent directory traversal patterns
Detection Rules:
11. Alert on TOCTOU patterns: rapid file operations followed by path modifications in OpenClaw processes
12. Monitor for writeFile operations that attempt to access parent directories (../ patterns)
13. Track failed file operations followed by successful writes to unexpected locations
14. Log all container escape attempts or out-of-bounds file access attempts
الإجراءات الفورية:
1. حدد جميع نشرات OpenClaw في بيئتك وتوثيق الإصدارات السابقة للإصدار 2026.3.11
2. قيد أذونات نظام الملفات على نقاط تثبيت الحاويات بمبدأ أقل امتياز
3. طبق ضوابط وصول صارمة على مسارات الدليل الأب التي تعالجها OpenClaw
4. فعّل تسجيل التدقيق لجميع عمليات الملفات داخل حاويات OpenClaw
الضوابط التعويضية (حتى توفر التصحيح):
5. نشر سياسات SELinux أو AppArmor لتقييد قدرات عملية OpenClaw والوصول إلى الملفات
6. استخدم أنظمة ملفات جذر للقراءة فقط حيث أمكن؛ ركب الدلائل الضرورية فقط كقابلة للكتابة
7. طبق مراقبة سلامة الملفات (FIM) على الدلائل الحرجة للكشف عن الكتابات غير المصرح بها
8. قم بتشغيل حاويات OpenClaw بامتيازات دنيا (مستخدم غير جذر، قدرات مسقطة)
9. استخدم تقسيم الشبكة لعزل الحاويات التي تقوم بتشغيل OpenClaw عن الأنظمة الحساسة
10. راقب الأنماط المريبة لإنشاء الروابط الرمزية أو أنماط اجتياز دليل الأب
قواعد الكشف:
11. تنبيه على أنماط TOCTOU: عمليات ملفات سريعة متبوعة بتعديلات المسار في عمليات OpenClaw
12. راقب عمليات writeFile التي تحاول الوصول إلى الدلائل الأب (أنماط ../)
13. تتبع عمليات الملفات الفاشلة متبوعة بعمليات كتابة ناجحة في مواقع غير متوقعة
14. سجل جميع محاولات الهروب من الحاويات أو محاولات الوصول إلى الملفات خارج الحدود