Time-of-check Time-of-use (TOCTOU) Race Condition in OpenClaw - #VU128598
Published: April 30, 2026
OpenClaw
Detailed vulnerability description
The vulnerability allows a local user to disclose limited information from a different file than the one that passed validation.
The vulnerability exists due to a time-of-check time-of-use race condition in validateScriptFileForShellBleed when validating and then reading a script by mutable pathname. A local user can swap the target path between validation and read to disclose limited information from a different file than the one that passed validation.
The exposed data is limited to derived preflight content such as a matched token, a line number, or the first non-empty JavaScript line in one branch.