CVE-2026-32043: OpenClaw's system.run approval TOCTOU via mutable symlink cwd target on node host
OpenClaw 2026.2.24 and earlier validates the `cwd` of an approved `system.run` command as text, then resolves it again when the node host runs the command. A symlinked `cwd` can be retargeted in between, so the command runs somewhere the operator did not approve. Upgrade to 2026.2.25.
Published Mar 3, 2026 · Updated Mar 30, 2026 · Analysis Nov 15, 2026
What an attacker can do
OpenClaw lets an operator approve commands before a node host runs them with system.run. On the gateway, approval matching checks the command, argv and binding fields, including cwd, as the text supplied. The node later resolves cwd at runtime. If cwd is a symlink, someone can change its target after the operator approves and before the process spawns. This is a time-of-check to time-of-use race (CWE-367) on link resolution (CWE-59).
The result: the approved command string is unchanged, but it runs in a different directory than the one reviewed. That matters when the command or its relative paths, scripts or config files resolve against the working directory, so the run can pick up attacker-placed files.
The attacker needs local access on the node host with the ability to modify the symlink target, and must win a race, which is why the CVSS 4.0 vector says local, high complexity, low privileges. The maintainers state that one shared gateway is not a multi-tenant adversarial boundary, but approval integrity still counts as a security boundary for operator-reviewed command execution.
Who is affected
The npm package openclaw at version 2026.2.24 and earlier, where approval-bound system.run runs on node hosts. Version 2026.2.25 and later are patched.
Check your install on the gateway and on each node host:
npm ls openclawopenclaw
- Ecosystem
- npm
- Affected
- <= 2026.2.24
- Fixed in
- 2026.2.25
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.2.25 or later:
npm install -g [email protected]The fix is in commit f789f880. It rejects symlink cwd paths for approval-bound system.run, canonicalizes path-like executable argv before spawn, and binds CLI approval requests to the exact commandArgv. The advisory lists no workaround. Upgrade every node host, not only the gateway.
How to tell if you were hit
On node hosts, look for symlinks used as working directories for system.run jobs, and for symlinks whose target changed shortly after an approval. Compare the approved cwd text in gateway approval records with the real directory the spawned process used, for example from process audit logs.
If an AI agent requests these commands, Beam records agent shell commands and file access, so you can compare what was approved with what ran.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
In [email protected], approval-bound system.run on node hosts could be influenced by mutable symlink cwd targets between approval and execution.
Details
Approval matching on the gateway validated command/argv and binding fields, including cwd, as provided text. Node execution later used runtime cwd resolution. A symlinked cwd could therefore be retargeted after approval and before spawn.
OpenClaw's trust model does not treat one shared gateway as a multi-tenant adversarial boundary, but approval integrity is still a security boundary for operator-reviewed command execution.
Affected Packages / Versions
- Package:
openclaw(npm) - Affected:
<= 2026.2.24 - Patched:
>= 2026.2.25
Fix Commit(s)
f789f880c934caa8be25b38832f27f90f37903db
Remediation
The fix adds defense-in-depth hardening for approval-bound node execution:
- reject symlink
cwdpaths for approval-boundsystem.run - canonicalize path-like executable argv before spawn
- bind CLI approval requests to exact
commandArgv
Release Process Note
Patched version is pre-set to the release (2026.2.25). Advisory published with npm release 2026.2.25.
OpenClaw thanks @tdjackey for reporting.
Credited to tdjackey.
Questions
- Is OpenClaw 2026.2.24 affected by CVE-2026-32043?
Yes. All versions up to and including 2026.2.24 are affected. 2026.2.25 is the first patched release.
- Can this be exploited remotely?
The CVSS 4.0 vector says local attack, high complexity. The attacker must be able to retarget a symlink on the node host and win the race between approval and spawn.
- What did the fix change?
It rejects symlink cwd paths for approval-bound system.run, canonicalizes path-like executable argv before spawn, and ties CLI approvals to the exact commandArgv.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More OpenClaw vulnerabilities
All OpenClaw entriesCVE-2026-62197
OpenClaw: Browser CDP discovery could accept blocked WebSocket URLs
medium8.5Oct 21, 2026CVE-2026-35630
OpenClaw: QQBot native approval buttons did not enforce configured approver identity
high8.0Jul 2, 2026CVE-2026-53806
OpenClaw: Combined POSIX shell options could confuse exec revalidation
high8.8Jul 2, 2026CVE-2026-53809
OpenClaw: Embedded runner policy could be confused by provider aliases
medium3.8Jul 2, 2026CVE-2026-53810
OpenClaw's marketplace runtime extension metadata could point at unscanned payloads
high8.8Jul 2, 2026CVE-2026-53811
OpenClaw: Matrix allowFrom could bind to mutable display names
high8.8Jul 2, 2026
