Description
OpenClaw before 2026.3.31 contains a time-of-check-time-of-use vulnerability in sandbox file operations that allows attackers to bypass fd-based defenses. Attackers can exploit check-then-act patterns in apply_patch, remove, and mkdir operations to manipulate files between validation and execution.
Problem types
CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
Product status
Any version before 2026.3.31
2026.3.31 (semver)
Credits
AntAISecurityLab
References
github.com/...enclaw/security/advisories/GHSA-rm5c-4rmf-vvhw (GitHub Security Advisory (GHSA-rm5c-4rmf-vvhw))
github.com/...ommit/32a4a47d602e0618f87b3e59f94d8c142767f860 (Patch Commit)
www.vulncheck.com/...ulnerability-in-sandbox-file-operations (VulnCheck Advisory: OpenClaw < 2026.3.31 - Time-of-Check-Time-of-Use (TOCTOU) Vulnerability in Sandbox File Operations)