CVE-2026-32977: OpenClaw: Sandbox `writeFile` commit could race outside the validated path
OpenClaw before 2026.3.11 has a race condition in the sandbox fs-bridge writeFile commit step. Code running inside the sandbox can win a time-of-check-time-of-use race and make a host-approved file write land outside the validated path. Upgrade to openclaw 2026.3.11.
Published Mar 13, 2026 · Updated Apr 6, 2026 · Analysis Nov 14, 2026
What an attacker can do
When an agent writes a file through the sandbox, OpenClaw validates the target path and then commits the file with a final mv inside the container. Earlier hardening had anchored the remove, rename and mkdir operations, but the writeFile commit still used the raw target path. That left a window between revalidation and the move.
Code already running in the sandbox can change parent directories in that window, for example by swapping a directory for a symlink. The mv then places the file somewhere the validation never approved, still inside the container's mount namespace.
The attacker therefore needs code execution inside the sandbox, such as a prompt-injected agent run or a malicious tool, and must win a race, which the advisory reflects with high attack complexity. The result is a sandbox boundary bypass: files written where policy did not allow, with high integrity and availability impact and none on confidentiality. Overwriting files outside the intended writable path can break or alter other mounted content. The advisory describes no public exploit.
Who is affected
The npm package openclaw before 2026.3.11, on setups that run agent file operations through the sandbox fs-bridge. Check your version:
npm ls -g openclaw
openclaw --versionopenclaw
- Ecosystem
- npm
- Affected
- < 2026.3.11
- Fixed in
- 2026.3.11
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.3.11 or later:
npm install -g openclaw@latestThe fix anchors the writeFile commit path to the canonical parent directory before the final move. The advisory lists upgrading as the only workaround.
How to tell if you were hit
Look in sandbox mounts for files that appear outside the writable directory an agent was approved to write, and for symlinks or directory swaps near writeFile targets. Review logs of agent file writes against the paths that were validated. Beam records the agent file access and shell commands on the developer machine, so unexpected paths show up there.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
In affected versions of openclaw, the sandbox fs-bridge writeFile commit step used an unanchored container path during the final move into place. An attacker racing parent-path changes inside the sandbox could redirect the committed file outside the validated sandbox path.
Impact
This is a sandbox boundary bypass. In-sandbox code could win a time-of-check-time-of-use race and cause host-approved writeFile operations to land outside the validated writable path within the container mount namespace.
Affected Packages and Versions
- Package:
openclaw(npm) - Affected versions:
< 2026.3.11 - Fixed in:
2026.3.11
Technical Details
The hardening work for anchored remove, rename, and mkdir operations did not fully cover the writeFile commit path. The final mv still used the raw target path, leaving a race window between safety revalidation and the in-container commit step.
Fix
OpenClaw now anchors the writeFile commit path to the canonical parent directory before the final move. The fix shipped in [email protected].
Workarounds
Upgrade to 2026.3.11 or later.
Credited to qi-scape.
Questions
- Can this be exploited from outside the sandbox?
No. The attacker needs code running inside the sandbox, which then races parent-path changes during a host-approved writeFile.
- Why is the score only medium?
The attack is local, needs low privileges, and requires winning a race, so complexity is high. Confidentiality is not affected.
- Is there a workaround?
None other than upgrading to 2026.3.11 or later, according to the advisory.
References
Read for this analysis:
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
