GHSA-2rqg-gjgv-84jm: OpenClaw: Gateway `agent` calls could override the workspace boundary
OpenClaw's gateway `agent` RPC trusted caller-supplied `spawnedBy` and `workspaceDir` values. An operator holding `operator.write` could re-root an agent run outside its configured workspace and use file and exec tools anywhere the process can reach. The npm package `openclaw` is affected up to 2026.3.8. Upgrade to 2026.3.11.
Published Mar 13, 2026 · Analysis Oct 31, 2026
What an attacker can do
The public gateway agent RPC accepted two override parameters, spawnedBy and workspaceDir, and applied them instead of enforcing the workspace set in the gateway configuration. A caller could point a run at any directory.
The attacker needs network access to the gateway and an operator credential with operator.write. That is a low privilege level, and the advisory calls out non-owner operators in particular. Workspace boundaries are meant to keep such operators away from the owner's files.
Once the run is re-rooted, the agent's normal file and exec tools work from any directory the gateway process can access. That means reading secrets such as SSH keys and environment files, changing files, and running commands as the gateway's OS user. The CVSS vector (network, low complexity, low privileges, no user interaction) rates confidentiality, integrity and availability impact as high. The weakness is CWE-668, exposure of a resource to the wrong sphere.
Teams that share one OpenClaw gateway between several operators, or hand out write-scoped tokens to automation, carry the most risk.
Who is affected
All openclaw npm releases up to and including 2026.3.8 are affected. Exposure needs a reachable gateway and a caller with operator.write. Check your installed version:
npm ls openclaw
openclaw --versionAnything at 2026.3.11 or later contains the fix.
openclaw
- Ecosystem
- npm
- Affected
- <= 2026.3.8
- Fixed in
- 2026.3.11
- Check
npm ls openclaw
How to fix it
Upgrade to 2026.3.11 or a later release such as 2026.3.12.
npm install -g [email protected]After the patch, the gateway enforces the configured workspace boundary for agent runs whatever overrides the caller sends. The advisory lists no workarounds. Until you upgrade, restrict who holds operator.write and keep the gateway off untrusted networks.
How to tell if you were hit
Look in gateway logs for agent RPC calls that carry spawnedBy or workspaceDir parameters, especially from non-owner operator tokens. Check agent runs whose working directory sits outside the configured workspace, and file or exec activity in unexpected directories such as home directories or .ssh. Beam records agent shell commands and file access, so it can show an agent run that touched paths outside its project.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
The public gateway agent RPC allowed an authenticated operator with operator.write to supply attacker-controlled spawnedBy and workspaceDir values. That let the caller re-root the agent run outside its configured workspace boundary.
Impact
A non-owner operator could escape the intended workspace boundary and run normal file and exec tools from an arbitrary process-accessible directory.
Affected versions
openclaw <= 2026.3.8
Patch
Fixed in openclaw 2026.3.11 and included in later releases such as 2026.3.12. The gateway now enforces the configured workspace boundary for agent runs regardless of caller-supplied overrides.
Credited to tdjackey.
Questions
- Does this need an authenticated account?
Yes. The caller needs an operator credential with
operator.write. No user interaction is required, and the privilege required is low.- Which OpenClaw version fixes the workspace override?
2026.3.11 fixes it, and later releases such as 2026.3.12 include the fix. Versions up to and including 2026.3.8 are listed as vulnerable.
- Is there a workaround if I cannot upgrade?
The advisory gives none. Limit
operator.writetokens to trusted people and do not expose the gateway to untrusted networks until you can upgrade.
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
