Time-of-check Time-of-use (TOCTOU) Race Condition in OpenClaw - CVE-2026-31997

 

Time-of-check Time-of-use (TOCTOU) Race Condition in OpenClaw - CVE-2026-31997

Published: April 8, 2026


Vulnerability identifier: #VU125107
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-31997
CWE-ID: CWE-367
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: OpenClaw
Affected software:
OpenClaw

Detailed vulnerability description

The vulnerability allows a remote user to execute a different executable than the operator approved.

The vulnerability exists due to a time-of-check time-of-use race condition in node system.run approvals when resolving non-path-like argv[0] PATH tokens for host=node runs. A remote user can change PATH resolution after approval to execute a different executable than the operator approved.

The issue affects previously approved actions that use non-path-like command tokens such as tr.


How to mitigate CVE-2026-31997

Install security update from vendor's website.

Sources