Description
OpenClaw before 2026.4.10 contains a time-of-check-time-of-use vulnerability in the validateScriptFileForShellBleed function that allows local attackers to bypass workspace boundary checks. An attacker with workspace write access can race-condition swap the target file between validation and preflight read, causing the validator to inspect a different file identity than the one that passed the initial boundary check.
Problem types
CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
Product status
Any version before 2026.4.10
2026.4.10 (semver)
Credits
kikayli
References
github.com/...enclaw/security/advisories/GHSA-gj9q-8w99-mp8j (GitHub Security Advisory (GHSA-gj9q-8w99-mp8j))
github.com/...ommit/b024fae9e5df43e9b69b2daebb72be3469d52e91 (Patch Commit)
www.vulncheck.com/...tion-in-exec-script-preflight-validator (VulnCheck Advisory: OpenClaw < 2026.4.10 - Time-of-Check-Time-of-Use (TOCTOU) Race Condition in exec Script Preflight Validator)