Openclaw · Openclaw · CVE-2026-41338
**Name of the Vulnerable Software and Affected Versions**
OpenClaw versions prior to 2026.3.31
**Description**
A time-of-check-time-of-use (TOCTOU) issue exists in sandbox file operations, which is a race condition where a system checks a condition and then acts on it, but the condition changes between the check and the action. This allows attackers to bypass fd-based defenses by exploiting check-then-act patterns in the `apply patch()`, `remove()`, and `mkdir()` functions to manipulate files between validation and execution.
**Recommendations**
Update to version 2026.3.31.
As a temporary workaround, restrict access to the `apply patch()`, `remove()`, and `mkdir()` functions to minimize the risk of exploitation.