Description
OpenClaw before 2026.4.22 contains a time-of-check/time-of-use race condition in the OpenShell filesystem bridge that allows attackers to read files outside the intended mount root. Attackers can exploit symlink swaps during filesystem operations to bypass sandbox restrictions and access unauthorized file contents.
Problem types
CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
Product status
Any version before 2026.4.22
2026.4.22 (semver)
Credits
vladimir tokarev (@VladimirEliTokarev)
References
github.com/...enclaw/security/advisories/GHSA-5h3g-6xhh-rg6p (GitHub Security Advisory (GHSA-5h3g-6xhh-rg6p))
github.com/...ommit/95119017c847c737bd113f0bff728c4666d79c45 (Patch Commit)
www.vulncheck.com/...e-race-condition-in-openshell-fs-bridge (VulnCheck Advisory: OpenClaw < 2026.4.22 - Time-of-Check/Time-of-Use Race Condition in OpenShell FS Bridge)