Openclaw cli: OpenClaw's TOCTOU symlink race
Affects openclaw-cliSource GCVE Database
CVSS 8.7 High : upgrade to 2026.3.1 soon.
Data as of 19 Nov 2026, 19:34 UTC
- Patch
- Available – fixed in 2026.3.1
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NWhat to do
Upgrade openclaw-cli to 2026.3.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewopenclaw-clipkg:brew/openclaw-cliOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in OpenClaw CLI version 2026.3.1 that addresses this TOCTOU symlink race. Users should upgrade to version 2026.3.1 or later to mitigate this vulnerability. No additional mitigation steps are indicated by the vendor advisory.
Description
A time-of-check to time-of-use (TOCTOU) symlink race condition exists in OpenClaw CLI's writeFileWithinRoot function. This vulnerability allows an attacker to manipulate a symlink path between resolution and file write operations, potentially causing file creation or truncation outside the intended root directory. The issue affects versions up to 2026.2.26 and is fixed in version 2026.3.1 by changing the file write flow to include post-open identity and boundary checks and exclusive file creation semantics.