OpenClaw before 2026.3.8 contains an approval bypass vulnerability in system.run where mutable script operands are not bound across approval and execution phases. Attackers can obtain approval for script execution, modify the approved script file before execution, and execute different content while maintaining the same approved command shape.
CVE-2026-32921 is a time-of-check-time-of-use (TOCTOU) vulnerability in OpenClaw's approval mechanism that allows attackers to bypass script execution controls by modifying approved scripts between approval and execution phases. While currently unpatched with no public exploits, this vulnerability poses a significant risk to organizations using OpenClaw for automated system administration, particularly in regulated sectors. The medium CVSS score (6.3) understates the actual risk due to the nature of approval bypass vulnerabilities in privileged execution contexts.
IMMEDIATE ACTIONS:
1. Inventory all OpenClaw deployments across your organization and document version numbers
2. Implement file integrity monitoring (FIM) on all approved script directories with real-time alerting
3. Restrict file modification permissions on approved scripts to read-only for execution accounts
4. Enable comprehensive audit logging for all script approval and execution events
5. Implement mandatory code review for all script modifications post-approval
COMPENSATING CONTROLS (until patch available):
6. Deploy cryptographic signing/hashing of approved scripts with verification before execution
7. Implement immutable script storage using write-once storage or version control with signed commits
8. Require separate approval for any script modifications after initial approval
9. Use containerized/sandboxed execution environments for OpenClaw scripts with minimal privileges
10. Implement network segmentation to limit script execution scope
DETECTION RULES:
11. Alert on file modifications to approved script directories between approval timestamp and execution
12. Monitor for hash/checksum mismatches between approved and executed script versions
13. Track approval IDs and correlate with execution logs to detect approval-execution mismatches
14. Flag rapid successive approvals followed by immediate modifications
PATCHING:
15. Monitor OpenClaw security advisories for version 2026.3.8+ release
16. Establish testing environment to validate patch before production deployment
17. Plan upgrade to patched version with change management approval
الإجراءات الفورية:
1. قم بحصر جميع نشرات OpenClaw عبر مؤسستك وتوثيق أرقام الإصدارات
2. تطبيق مراقبة سلامة الملفات (FIM) على جميع مجلدات البرامج النصية المعتمدة مع التنبيهات الفورية
3. تقييد أذونات تعديل الملفات على البرامج النصية المعتمدة للقراءة فقط لحسابات التنفيذ
4. تفعيل تسجيل التدقيق الشامل لجميع أحداث موافقة وتنفيذ البرامج النصية
5. تطبيق مراجعة الكود الإلزامية لجميع تعديلات البرامج النصية بعد الموافقة
عناصر التحكم البديلة (حتى توفر التصحيح):
6. نشر التوقيع التشفيري/التجزئة للبرامج النصية المعتمدة مع التحقق قبل التنفيذ
7. تطبيق تخزين البرامج النصية غير القابلة للتغيير باستخدام التخزين أحادي الكتابة أو التحكم في الإصدارات
8. طلب موافقة منفصلة لأي تعديلات على البرامج النصية بعد الموافقة الأولية
9. استخدام بيئات التنفيذ المحتوية/المعزولة لبرامج OpenClaw بأقل الامتيازات
10. تطبيق تقسيم الشبكة لتحديد نطاق تنفيذ البرامج النصية
قواعد الكشف:
11. التنبيه على تعديلات الملفات في مجلدات البرامج النصية المعتمدة بين طابع زمني للموافقة والتنفيذ
12. مراقبة عدم تطابق التجزئة/المجموع الاختباري بين إصدارات البرامج النصية المعتمدة والمنفذة
13. تتبع معرفات الموافقة والربط مع سجلات التنفيذ للكشف عن عدم تطابق الموافقة والتنفيذ
14. وضع علامة على الموافقات المتتالية السريعة متبوعة بتعديلات فورية
التصحيح:
15. مراقبة استشارات أمان OpenClaw لإصدار 2026.3.8+
16. إنشاء بيئة اختبار للتحقق من صحة التصحيح قبل نشره في الإنتاج
17. التخطيط للترقية إلى الإصدار المصحح مع موافقة إدارة التغيير