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

CVE-2026-27646: OpenClaw: Sandboxed /acp spawn requests could initialize host ACP sessions

mediumCVSS 4.0 5.8 · 3.1 6.1GHSA-9q36-67vc-rrwg

OpenClaw 2026.3.2 and earlier let a sandboxed session start a host-side ACP session through the /acp spawn slash command. The sessions_spawn tool already blocked this, but the command path skipped the check. Fixed in OpenClaw 2026.3.7.

Published Mar 9, 2026 · Updated Mar 30, 2026 · Analysis Oct 31, 2026

What an attacker can do

ACP sessions run on the host, outside the OpenClaw sandbox. The direct spawn path in src/agents/acp-spawn.ts already refused sandboxed requesters. The /acp spawn handler in src/auto-reply/reply/commands-acp/lifecycle.ts called initializeSession(...) without that check. A sender in a sandboxed chat session could therefore cross from the sandbox into host-side ACP runtime initialization.

The attacker is not anonymous. They must already be an authorized sender in a sandboxed session. ACP also has to be enabled with a backend available. That makes this a sandbox boundary break by an existing user, or by a prompt-injected agent acting for that user, not a remote attack.

The score reflects that: local vector, low privileges, high integrity impact. A sandboxed session that should only touch isolated files can start an agent runtime on the host, with host file access and whatever tools that backend exposes. Teams that rely on the sandbox to contain untrusted channels or prompts lose that containment.

Who is affected

The npm package openclaw, versions <= 2026.3.2. Exposure needs ACP enabled, an ACP backend available, and sandboxed sessions in use. Check the installed version:

npm ls -g openclaw
openclaw --version

If you run OpenClaw from a project dependency, use npm ls openclaw in that project.

openclaw

Ecosystem
npm
Affected
<= 2026.3.2
Fixed in
2026.3.7
Check
npm ls openclaw

How to fix it

Upgrade to openclaw 2026.3.7 or later.

npm install -g [email protected]

The fix adds a shared guard, resolveAcpSpawnRuntimePolicyError, in src/agents/acp-spawn.ts. The /acp spawn handler now calls it before any backend initialization. Sandboxed requesters are rejected, and so is sandbox=require combined with runtime=acp. The advisory gives no workaround. If you cannot upgrade, turn ACP off for deployments that use sandboxed sessions.

How to tell if you were hit

Review chat and command logs for /acp spawn issued from sandboxed sessions. Look for ACP session or backend processes on the host that started from sessions configured as sandboxed. After upgrading, a sandboxed /acp spawn should return a warning that sandboxed sessions cannot spawn ACP sessions because ACP runs on the host. Beam records agent shell commands and file access on the host, so unexpected activity from a spawned ACP runtime would show up there.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

Sandboxed requester sessions could reach host-side ACP session initialization through /acp spawn.

OpenClaw already blocked sessions_spawn({ runtime: "acp" }) from sandboxed sessions, but the slash-command path initialized ACP directly without applying the same host-runtime guard first.

Affected Packages / Versions

  • npm package: openclaw
  • Affected versions: <= 2026.3.2
  • Patched version: >= 2026.3.7

Details

ACP sessions run on the host, not inside the OpenClaw sandbox. The direct ACP spawn path in src/agents/acp-spawn.ts already denied sandboxed requesters, but /acp spawn in src/auto-reply/reply/commands-acp/lifecycle.ts called initializeSession(...) without first applying the same restriction.

In affected versions, an already authorized sender in a sandboxed session could use /acp spawn to cross from sandboxed chat context into host-side ACP runtime initialization when ACP was enabled and a backend was available.

Fix Commit(s)

  • 61000b8e4ded919ca1a825d4700db4cb3fdc56e3

Fix Details

The fix introduced a shared ACP runtime-policy guard in src/agents/acp-spawn.ts and reused it from the /acp spawn handler in src/auto-reply/reply/commands-acp/lifecycle.ts before any ACP backend initialization. Regression coverage was added in src/auto-reply/reply/commands-acp.test.ts to prove sandboxed /acp spawn requests are rejected early, while existing ACP spawn behavior for non-sandboxed sessions remains unchanged.

Release Process Note

Patched version is pre-set to 2026.3.7 so the advisory can be published once that npm release is available.

Thanks @tdjackey for reporting.

Credited to tdjackey.

Questions

Is OpenClaw 2026.3.2 affected by CVE-2026-27646?

Yes. Versions up to and including 2026.3.2 are affected. The patched version is 2026.3.7.

Can a remote stranger exploit this?

No. The sender must already be authorized and in a sandboxed session, and ACP must be enabled with a backend available.

Why did sessions_spawn not have this problem?

It already denied sandboxed requesters in spawnAcpDirect. Only the /acp spawn slash-command path skipped that check and called initializeSession directly.

Is it exploited in the wild?

No source we read reports exploitation, and it is not in CISA's KEV catalog.

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