CVE-2026-33579: OpenClaw: /pair approve command path omitted caller scope subsetting and reopened device pairing escalation
OpenClaw up to 2026.3.24 lets a caller with pairing rights but no admin rights approve a pending device request that asks for admin scopes. The /pair approve command never passed the caller's scopes to the core approval check. Fixed in 2026.3.28.
Published Mar 31, 2026 · Updated Apr 6, 2026 · Analysis Oct 31, 2026
What an attacker can do
Device pairing in OpenClaw lets a new device ask for scopes, and an existing caller approves it. The core check, approveDevicePairing in src/infra/device-pairing.ts, is meant to confirm that the approver holds every scope the device requests. The /pair approve handler in extensions/device-pair/index.ts called it without forwarding the caller's scopes, so the subset check was skipped.
The attacker needs a low-privilege account that can use pairing. They approve a pending request, their own or another, that asks for broader scopes including admin. The paired device then holds admin access to the gateway. That is a privilege escalation from pairing rights to full control, with high impact on confidentiality, integrity and availability. Since OpenClaw agents run tools, shell and files, admin on the gateway is a serious step.
Who is affected
npm package openclaw, versions up to and including 2026.3.24, on installs that use the device-pair extension and the /pair approve command. Check the version:
npm ls openclawReview your list of paired devices and their scopes for any device with admin access that you did not approve yourself.
openclaw
- Ecosystem
- npm
- Affected
- <= 2026.3.24
- Fixed in
- 2026.3.28
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.3.28 or later:
npm install [email protected]Commit 4ee4960de2 makes approveDevicePairing take callerScopes and return a forbidden status with a missingScope field. The /pair approve handler now replies that the request needs the missing scope. The local CLI fallback passes operator.admin. The sources list no workaround.
How to tell if you were hit
List paired devices and compare each one's granted scopes with who approved it. Look for devices with admin scopes approved through /pair approve by non-admin users. Check gateway logs for pairing approvals around the time unexpected devices appeared. The advisory gives no log signature. Beam logs the shell commands and file access of agents on the host, which helps review what a rogue device did.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
The /pair approve command path called device approval without forwarding caller scopes into the core approval check.
Impact
A caller that held pairing privileges but not admin privileges could approve a pending device request asking for broader scopes, including admin access.
Affected Component
extensions/device-pair/index.ts, src/infra/device-pairing.ts
Fixed Versions
- Affected:
<= 2026.3.24 - Patched:
>= 2026.3.28 - Latest stable
2026.3.28contains the fix.
Fix
Fixed by commit 4ee4960de2 (Pairing: forward caller scopes during approval).
OpenClaw thanks @AntAISecurityLab for reporting.
Credited to AntAISecurityLab.
Questions
- Is OpenClaw 2026.3.24 affected by CVE-2026-33579?
Yes. All versions up to and including 2026.3.24 are affected. Version 2026.3.28 contains the fix.
- What privileges does the attacker need?
Pairing privileges, but not admin. The vector lists low privileges, no user interaction and network access.
- What does the fix change?
Approval now receives the caller's scopes and refuses with a forbidden result when the caller lacks a scope the device asks for.
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
