CVE-2026-35639: OpenClaw Gateway: RCE and Privilege Escalation from operator.pairing to operator.admin via device.pair.approve
OpenClaw before 2026.3.22 lets a caller holding only the operator.pairing scope approve a pending device request that asks for broader operator scopes, up to operator.admin. This is a privilege escalation that the advisory says leads to remote code execution. Fixed in OpenClaw 2026.3.22.
Published Mar 26, 2026 · Updated Apr 10, 2026 · Analysis Oct 31, 2026
What an attacker can do
The gateway method device.pair.approve is meant for operators who approve new devices. It did not compare the scopes a pending device requested with the scopes the approver held. An approver with operator.pairing could approve a request for operator.admin, and the new device then held admin rights the approver never had.
The attacker needs network access to the gateway and a credential with the operator.pairing scope. No user interaction is needed. They also need a pending device request that asks for the larger scope. The sources do not say how a request gets into the queue. Once the device holds operator.admin, the attacker controls the gateway. The advisory says this leads to remote code execution on the Node infrastructure, though it does not explain the step from admin to code execution.
Teams that give pairing-only credentials to helpers, automation or less-trusted users are the exposed group. VulnCheck rates it high at 8.7. The GitHub advisory rates it critical, with scope change in the CVSS 4.0 vector.
Who is affected
The npm package openclaw before 2026.3.22. The advisory checked tag v2026.3.23-2 and npm 2026.3.23-2 and found the fix still present.
Check your version:
npm ls openclawopenclaw
- Ecosystem
- npm
- Affected
- < 2026.3.22
- Fixed in
- 2026.3.22
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.3.22 or later.
npm install openclaw@latestThe fix is commit fc2d29e. In src/gateway/server-methods/devices.ts, caller scopes are now passed into device.pair.approve. In src/infra/device-pairing.ts, requested operator scopes that exceed the approver's own set are rejected. The advisory lists no workaround. After upgrading, review paired devices and revoke any you do not recognise.
How to tell if you were hit
List paired devices and compare the scopes each holds with the scope of the operator who approved it. Any device with operator.admin that was approved by a pairing-only credential points to this flaw. Check gateway logs for device.pair.approve calls and for admin-level actions taken by newly paired devices. If you find one, revoke the device and rotate secrets the gateway holds.
Beam logs the shell commands and MCP tool calls an agent makes on a developer machine, which helps show what a rogue admin device did there.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
device.pair.approve allowed an operator.pairing approver to approve a pending device request for broader operator scopes than the approver actually held.
Affected Packages / Versions
- Package:
openclaw(npm) - Affected: < 2026.3.22
- Fixed: >= 2026.3.22
- Latest released tag checked:
v2026.3.23-2(630f1479c44f78484dfa21bb407cbe6f171dac87) - Latest published npm version checked:
2026.3.23-2
Fix Commit(s)
fc2d29ea926f47c428c556e92ec981441228d2a4
Release Status
The fix shipped in v2026.3.22 and remains present in v2026.3.23 and v2026.3.23-2.
Code-Level Confirmation
- src/gateway/server-methods/devices.ts now threads caller scopes into device.pair.approve.
- src/infra/device-pairing.ts now rejects requested operator scopes that exceed the approver-held operator scope set.
OpenClaw thanks @zpbrent for reporting.
Credited to zpbrent.
Questions
- Is OpenClaw 2026.3.21 affected by CVE-2026-35639?
Yes. Everything before 2026.3.22 is affected. 2026.3.22, 2026.3.23 and 2026.3.23-2 contain the fix.
- What does an attacker need to start?
Network access to the gateway and a credential with the
operator.pairingscope. No user interaction is needed.- Is it exploited in the wild?
No source reports it, and it is not in CISA's KEV catalog. The EPSS score is 0.0046.
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
