Description
OpenClaw versions prior to 2026.2.25 contain a time-of-check-time-of-use vulnerability in approval-bound system.run execution where the cwd parameter is validated at approval time but resolved at execution time. Attackers can retarget a symlinked cwd between approval and execution to bypass command execution restrictions and execute arbitrary commands on node hosts.
Problem types
CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
Product status
Any version before 2026.2.25
2026.2.25 (semver)
Credits
tdjackey
References
github.com/...enclaw/security/advisories/GHSA-mwcg-wfq3-4gjc (GitHub Security Advisory (GHSA-mwcg-wfq3-4gjc))
github.com/...ommit/f789f880c934caa8be25b38832f27f90f37903db (Patch Commit)
www.vulncheck.com/...ble-symlink-in-system-run-cwd-parameter (VulnCheck Advisory: OpenClaw < 2026.2.25 - Time-of-Check-Time-of-Use via Mutable Symlink in system.run cwd Parameter)