NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · OpenClaw

GHSA-2rqg-gjgv-84jm: OpenClaw: Gateway `agent` calls could override the workspace boundary

highCVSS 3.1 8.8

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 --version

Anything 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.write tokens 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 entries