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

GHSA-943q-mwmv-hhvh: OpenClaw: Gateway /tools/invoke tool escalation + ACP permission auto-approval

highCVSS 3.1 8.8

OpenClaw before 2026.2.14 let a caller with a valid Gateway token use `POST /tools/invoke` to call high-risk session tools such as `sessions_spawn` and `sessions_send`, and ACP clients could auto-approve risky permission requests. Together these raise a single-tool call to agent control and possible command execution. Fixed in 2026.2.14.

Published Mar 2, 2026 · Analysis Oct 31, 2026

What an attacker can do

Two weaknesses combine. First, the HTTP gateway did not deny session orchestration tools by default. A caller who holds Gateway auth could go beyond the constrained tool set and use sessions_spawn or sessions_send to create or control agent sessions. Depending on tool policy and runtime, that reaches command execution. sessions_send also allows message injection into other sessions.

Second, ACP clients could auto-approve permission requests for risky tools with too little user interaction. That removes the prompt that normally stops silent execution or changes, so non-read and non-search tool permissions could be granted without anyone noticing.

The attacker needs network reach to the Gateway and a valid token (privileges required: low). It matters most where the Gateway is bound beyond loopback or exposed to the internet. The advisory rates the result as full confidentiality, integrity and availability impact.

Who is affected

The openclaw npm package below 2026.2.14. Risk is highest when the Gateway listens on a non-loopback address, or when gateway.tools.allow has been used to re-enable HTTP tools that are denied by default. ACP-integrated setups are also affected through the auto-approval behaviour.

npm ls -g openclaw
openclaw --version

openclaw

Ecosystem
npm
Affected
< 2026.2.14
Fixed in
2026.2.14
Check
npm ls openclaw

How to fix it

Upgrade to openclaw 2026.2.14.

npm install -g [email protected]

PR 15390 denies high-risk tools over HTTP /tools/invoke by default, with gateway.tools.allow and gateway.tools.deny as overrides. ACP clients now prompt for any non-read, non-search permission request, and safe-kind inference is stricter so substring matches no longer cause auto-approval. The security audit also warns when gateway.tools.allow re-enables default-denied tools.

The advisory also recommends keeping the Gateway on loopback (gateway.bind="loopback" or openclaw gateway run --bind loopback), reaching it by SSH tunnel or Tailscale, and treating gateway.tools.allow as high-risk.

How to tell if you were hit

Review Gateway access logs for POST /tools/invoke requests naming sessions_spawn or sessions_send, especially from addresses other than loopback. Check your config for gateway.bind values other than loopback and for entries in gateway.tools.allow. Look for agent sessions you did not start. Beam records agent shell commands, file access and MCP tool calls, so unexpected commands from a spawned session would show up there and rules can flag them.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

OpenClaw Gateway exposes an authenticated HTTP endpoint (POST /tools/invoke) intended for invoking a constrained set of tools. Two issues could combine to significantly increase blast radius in misconfigured or exposed deployments:

  • The HTTP gateway layer did not deny high-risk session orchestration tools by default, allowing a caller with Gateway auth to invoke tools like sessions_spawn / sessions_send and pivot into creating or controlling agent sessions.
  • ACP clients could auto-approve permission requests for risky tools with insufficient user interaction/guardrails, reducing the friction that should normally prevent silent execution or mutation.

Impact

If the Gateway is reachable by an attacker and they obtain a valid Gateway token, they may be able to:

  • Escalate from single-tool invocation to spawning/controlling sessions and reach command execution capabilities depending on tool policy and runtime environment.
  • Perform cross-session message injection via sessions_send.
  • In ACP-integrated scenarios, obtain unintended approvals for non-read/search tool permissions.

CVSS

  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (8.8)

Affected versions

  • openclaw < 2026.2.14

Fixed in

  • openclaw >= 2026.2.14

Remediation

The default behavior is now hardened:

  • PR #15390: deny high-risk tools over HTTP /tools/invoke by default (with gateway.tools.{allow,deny} overrides) and harden ACP permission handling.
  • Commit bb1c3dfe1: ACP clients now prompt for any non-read/search permission request (fail closed for mutating/execution/fetch operations).
  • Commit 539689a2f: security audit warns when gateway.tools.allow re-enables default-denied HTTP tools, since this can increase RCE blast radius if the Gateway is reachable.
  • Commit 153a7644e: ACP safe-kind inference is stricter to avoid accidental auto-approval due to substring matches (still auto-approves only confident read/search).

Mitigations / deployment guidance

  • Keep the Gateway loopback-only unless you have a strong reason not to: gateway.bind="loopback" / openclaw gateway run --bind loopback.
  • Avoid exposing the Gateway directly to the public internet. Use an SSH tunnel or Tailscale to access a loopback-bound Gateway.
  • Treat opting in to default-denied HTTP tools (via gateway.tools.allow) as high-risk and audit such configurations carefully.

Credits

OpenClaw thanks @aether-ai-agent for reporting this issue and contributing remediation work.

Credited to aether-ai-agent.

Questions

Does this need a Gateway token?

Yes. The attacker needs a valid Gateway token and network access to the Gateway. The flaw is what that token could do over HTTP: reach session tools that should have been denied.

Which OpenClaw version fixes GHSA-943q-mwmv-hhvh?

Version 2026.2.14. Anything below it is affected.

Is a loopback-only Gateway safe?

It greatly reduces exposure, and the advisory recommends it with an SSH tunnel or Tailscale for remote access. Upgrading is still needed to get the new default tool denials.

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