/

CVE-2026-62218

Severity:

HIGH RISK

(8.8)

Missing Authorization Checks (CWE-862) in OpenClaw Pairing

CVE-2026-62218

Analyzed

Vulnerability type

Category:

Missing Authorization

CWE:

CWE-862

Impact:

Privilege Escalation via Authorization Bypass

Severity:

HIGH RISK

(8.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

OpenClaw 2026.1.20 before 2026.5.27 contains a missing authorization check in the device.pair.approve feature that lets lower-trust callers bypass role-management controls.

When reachable via certain configured input paths, this flaw can allow attackers to perform actions that should require stronger authorization, effectively escalating their operational capabilities.

Affected context

The vulnerability appears in OpenClaw deployments using the device pairing and approval workflow where role-based authorization is expected to gate access to sensitive operations.

It manifests when device.pair.approve can be invoked through input paths that are exposed to lower-trust callers, and the feature does not consistently enforce role-management or authorization checks.

Environments that integrate this feature into broader automation or remote management flows are more likely to expose the flawed path to attackers.

Exploit preconditions

  • Attack surface: Application endpoints or workflows that route to device.pair.approve
  • Required access: Ability to invoke the affected feature via configured input paths (e.g., as a lower-trust or partially authenticated caller)
  • Trigger point: Calling device.pair.approve where role-management checks are expected but not enforced
  • Why exploitation is possible: The authorization logic is incomplete or misplaced, allowing requests from lower-privileged contexts to be processed as if they were fully authorized to approve device pairing and related actions

Why this happens

This issue stems from missing or inconsistent enforcement of authorization controls on a sensitive operation.

The device.pair.approve feature relies on role-management to restrict which callers can approve device pairing or associated actions, but the implementation fails to verify the caller's effective role when invoked through certain configured paths.

Conceptually, this maps to CWE-862: Missing Authorization, where a privileged function is accessible without adequate permission checks, often due to assumed trust in upstream routing or incomplete access-control integration.

Potential impact

  • Attackers may approve unauthorized device pairings into trusted environments
  • Lower-privileged users could gain access to operations reserved for administrators or high-trust roles
  • Unauthorized changes to role assignments or device trust relationships could be performed
  • System integrity and policy compliance may be weakened by silent privilege escalation

General mitigation guidance

Effective mitigation focuses on enforcing centralized, consistent authorization checks on all entry points to sensitive features.

Common defensive patterns include:

  • Ensuring all calls to device.pair.approve pass through a single, well-audited authorization layer that validates roles and permissions
  • Applying least-privilege design so that default or lower-trust roles cannot access device approval capabilities
  • Decoupling routing or input-path configuration from authorization logic, so exposure via additional paths does not bypass checks
  • Using explicit, declarative access-control policies (such as role-to-action mappings) and applying them uniformly across API and internal calls
  • Logging and monitoring device-approval actions to detect anomalous approvals and support incident response

How teams detect issues like this

Detection typically involves a mix of design review, code inspection, and runtime monitoring:

  • Reviewing the access-control model to confirm that every invocation of device.pair.approve is guarded by role and permission checks
  • Using static analysis or policy-as-code tools to flag sensitive functions that are callable without explicit authorization enforcement
  • Conducting targeted code review around routing and controller logic to identify alternate input paths that reach privileged features
  • Implementing audit trails for device pairing and approval events, then analyzing logs for approvals originating from unexpected roles or channels
  • Incorporating authorization test cases into automated security testing to verify that lower-trust callers cannot reach privileged actions

Sources

SourceLink
github.comgithub.com/openclaw/openclaw/security/advisories/GHSA-8v95-qqcm-qp9h
vulncheck.comvulncheck.com/advisories/openclaw-authorization-bypass-via-device-pair-approve

Frequently asked

questions

Exploitability depends on how widely the affected input paths are exposed. If lower-trust users or external integrations can reach device.pair.approve, the bypass can be broadly exploitable; if access is tightly restricted, practical risk is reduced but still present.

An attacker typically needs the ability to invoke application paths that route to device.pair.approve, often as a lower-privileged authenticated user or through an integration endpoint that is not intended to approve devices directly.

The safest fix is to centralize and strictly enforce role-based authorization on all calls to device.pair.approve, ensuring that only explicitly allowed roles can perform approval operations regardless of the route or input path used.

Prevention relies on designing a consistent access-control architecture: apply authorization checks at a common layer, maintain clear mappings between actions and roles, enforce these rules uniformly across APIs and internal calls, and continuously test and review sensitive features for missing or bypassable checks.

Find out what's already
exploitable in your codebase.