Description
OpenClaw before 2026.3.31 contains a time-of-check-time-of-use race condition in the remote filesystem bridge readFile function that allows sandbox escape. Attackers can exploit the separate path validation and file read operations to bypass sandbox restrictions and read arbitrary files.
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-9p3r-hh9g-5cmg (GitHub Security Advisory (GHSA-9p3r-hh9g-5cmg))
github.com/...ommit/121870a08583033ed6a0ed73d9ffea32991252bb (Patch Commit)
www.vulncheck.com/...octou-race-in-remote-fs-bridge-readfile (VulnCheck Advisory: OpenClaw < 2026.3.31 - Sandbox Escape via TOCTOU Race in Remote FS Bridge readFile)