CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



GHSA-FQW4-MPH7-2VR8

GHSA-FQW4-MPH7-2VR8: OpenClaw Gateway Silent Privilege Escalation via Shared-Auth Reconnect

Amit Schendel
Amit Schendel
Senior Security Researcher

Mar 28, 2026·5 min read·37 visits

Executive Summary (TL;DR)

A flaw in OpenClaw's shared-auth reconnection logic allows local or trusted devices with limited access to silently escalate to administrative privileges, resulting in host RCE.

The OpenClaw Gateway Server contains a critical privilege escalation vulnerability in its WebSocket reconnection logic. Devices authenticating via the shared-auth mechanism can silently upgrade restricted permissions to administrative access without user interaction, leading to arbitrary remote code execution on the host node.

Vulnerability Overview

OpenClaw is an open-source personal AI assistant that utilizes a Gateway Server to manage device pairings and communication. The gateway exposes a WebSocket handshake endpoint for device authentication and access control. This endpoint handles both initial device pairings and subsequent reconnections using a shared-auth mechanism.

Vulnerability GHSA-FQW4-MPH7-2VR8 exists in the connection logic of this Gateway Server. The flaw is an Improper Privilege Management issue (CWE-269) affecting how the server processes scope upgrades during device reconnection. Specifically, the gateway fails to require explicit authorization when an already-paired device requests elevated privileges over a trusted connection.

Exploitation of this vulnerability allows an attacker with limited access (operator.read) to silently upgrade their privileges to administrative levels (operator.admin). Administrative access to the OpenClaw gateway permits full system control. Consequently, an attacker can leverage this privilege escalation to achieve arbitrary remote code execution on the host node.

Root Cause Analysis

The root cause resides in the gateway's implicit trust model for local and shared-auth connections. During the connection handshake, the gateway evaluates whether manual user approval is required for a given pairing request. The system utilizes a flag named allowSilentLocalPairing, which is automatically activated for local connections or requests authenticated with a valid pre-shared secret (OPENCLAW_SECRET).

When this flag is active, the gateway bypasses the manual approval prompt and silently authorizes the pairing request. The vulnerability occurs because the connection logic lacks scope validation during the reconnection phase. It fails to differentiate between a completely new device pairing and a privilege escalation request originating from a previously paired device.

If an existing device identity with restricted permissions initiates a reconnection and requests the operator.admin scope, the gateway processes this as a pairing event. Because the request originates from a trusted path (triggering the allowSilentLocalPairing flag), the server silently approves the request. This completely overwrites the restricted scopes with administrative scopes without user interaction or secondary validation.

Code Analysis

The vulnerable implementation incorrectly relied on the connection's authentication state to dictate the authorization of requested scopes. In the unpatched version, the pairing handler applied the allowSilentLocalPairing boolean broadly, regardless of the underlying context of the request.

The patch introduced in commit 81ebc7e0344fd19c85778e883bad45e2da972229 resolves this by enforcing explicit authorization for scope upgrades. In src/gateway/server/ws-connection/message-handler.ts, the code was modified to override the silent flag if the underlying reason is a scope upgrade.

// Patched pairing configuration ensures explicit approval for upgrades
const pairingConfig = {
  silent: reason === "scope-upgrade" ? false : allowSilentLocalPairing,
  // ...other configuration properties
};

Additionally, the patch introduces a pairingStateAllowsRequestedAccess validation helper. This function performs a strict comparison between the currently requested scopes and the scopes previously approved for that specific device identity. The fix also implements resolveLivePendingRequestId to ensure concurrent connection attempts correctly map to existing pending requests, preventing race conditions that could lead to phantom approvals.

Exploitation Methodology

Exploiting this vulnerability requires the attacker to possess an existing, restricted device identity (e.g., operator.read). The attacker must also have access to the shared-auth secret, typically defined as OPENCLAW_SECRET, or initiate the connection from an environment where shouldAllowSilentLocalPairing evaluates to true.

The attack begins with the adversary initiating a WebSocket connection to the gateway's handshake endpoint. During this handshake, the attacker transmits their existing deviceIdentityPath but modifies the requested scopes payload to include ["operator.admin"]. The attacker authenticates this request using the compromised or accessible shared secret.

The gateway processes the valid token and triggers the silent pairing logic due to the shared-auth context. The system auto-approves the request, instantly upgrading the device's permissions in the backend database. The attacker now possesses an active operator.admin session.

With administrative scopes, the attacker executes arbitrary skills and manages node resources. This level of access exposes underlying system APIs and shell execution environments, culminating in full remote code execution on the server hosting the OpenClaw gateway.

Impact Assessment

The impact of this vulnerability is critical due to the direct path from limited access to full system compromise. The transition from operator.read to operator.admin bypasses all intended authorization boundaries within the OpenClaw architecture.

Administrative access in OpenClaw grants the capability to interact with the underlying host operating system. An attacker successfully exploiting this flaw gains the ability to execute arbitrary shell commands via the OpenClaw agent. This compromises the confidentiality, integrity, and availability of the host node entirely.

The attack requires low complexity and only baseline privileges, making it highly exploitable for any insider threat or compromised adjacent service that holds the OPENCLAW_SECRET. The vulnerability scores high on CVSS metrics for impact, given the total loss of system control upon successful exploitation.

Remediation and Mitigation

The primary remediation for this vulnerability is updating the OpenClaw gateway to a version containing commit 81ebc7e0344fd19c85778e883bad45e2da972229. This patch effectively breaks the exploit chain by mandating explicit user approval for any scope upgrade, regardless of the connection's origin or token status.

Administrators should conduct an immediate audit of all paired devices within the OpenClaw gateway. Review the approved scopes for each device identity and revoke any unrecognized or suspicious entries holding operator.admin or operator.pairing permissions.

If an environment is suspected of compromise, administrators must immediately rotate the OPENCLAW_SECRET environment variable. Rotating this secret invalidates all current shared-auth tokens and prevents attackers from utilizing previously exfiltrated credentials to re-establish access.

Organizations should strictly enforce network isolation for the OpenClaw gateway. Ensure the service is not exposed to untrusted networks or the public internet, as the shared-auth mechanism heavily relies on the security of the shared secret and the origin of the connection.

Fix Analysis (1)

Technical Appendix

CVSS Score
9.8/ 10
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected Systems

OpenClaw Gateway Server

Affected Versions Detail

Product
Affected Versions
Fixed Version
OpenClaw
OpenClaw
< 2026-03-25Commit 81ebc7e0344fd19c85778e883bad45e2da972229
AttributeDetail
CWE IDCWE-269
Attack VectorLocal Network / Localhost
Attack ComplexityLow
Privileges RequiredLow (existing device identity)
ImpactRemote Code Execution (RCE)
Exploit StatusProof of Concept Available

MITRE ATT&CK Mapping

T1068Exploitation for Privilege Escalation
Privilege Escalation
T1059Command and Scripting Interpreter
Execution
CWE-269
Improper Privilege Management

Improper Privilege Management

Vulnerability Timeline

Vulnerability addressed and patched by maintainers
2026-03-25
GHSA-FQW4-MPH7-2VR8 published on the GitHub Advisory Database
2026-03-27
Research conducted and details confirmed
2026-03-28

References & Sources

  • [1]GitHub Advisory: GHSA-FQW4-MPH7-2VR8
  • [2]Fix Commit: 81ebc7e0344fd19c85778e883bad45e2da972229
  • [3]OpenClaw Repository Security Policy

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•44 minutes ago•CVE-2026-114155
7.5

CVE-2026-114155: Local Elevation of Privilege via TOCTOU Race Condition in Microsoft .NET dotnet-watch

CVE-2026-114155 is a local elevation of privilege vulnerability affecting Microsoft .NET on Linux and macOS platforms. The vulnerability exists within the dotnet-watch (Hot Reload) component and is caused by a Time-of-Check Time-of-Use (TOCTOU) race condition (CWE-367) during the generation and execution of temporary XML solution files (.slnx) in shared system temporary directories. A local attacker with low privileges can intercept and modify the temporary solution file before MSBuild evaluates it, achieving arbitrary code execution in the security context of the user running dotnet-watch.

Alon Barad
Alon Barad
1 views•9 min read
•about 2 hours ago•CVE-2026-118748
7.5

CVE-2026-118748: Unbounded Memory Allocation Denial of Service in ASP.NET Core Blazor Static-SSR

CVE-2026-118748 is a remote Denial of Service (DoS) vulnerability in Microsoft ASP.NET Core (.NET 11.0 preview releases prior to 11.0.0) and Microsoft Visual Studio 2026 (prior to 18.12.0). The flaw originates from unbounded resource allocation (CWE-770) within the Blazor static server-side rendering (static-SSR) validation pipeline, where dynamic or attacker-supplied form field identifiers are cached in a singleton-scoped memory structure without size limits or eviction policies. Unauthenticated remote attackers can exploit this condition over the network by sending repeated HTTP requests with unique field names, exhausting heap memory and terminating the host process via an unhandled OutOfMemoryException.

Alon Barad
Alon Barad
3 views•9 min read
•about 3 hours ago•CVE-2026-114150
5.9

CVE-2026-114150: Remote Information Disclosure via Uninitialized Pooled Memory in ASP.NET Core Response Buffering

CVE-2026-114150 is a network-accessible information disclosure vulnerability affecting Microsoft ASP.NET Core in .NET 11.0 preview releases and Microsoft Visual Studio 2026 prior to version 18.12.0. The flaw stems from the use of uninitialized resources (CWE-908) within response buffering components, specifically ResponseBufferingStream used by middleware such as HTTP Logging and Output Caching. Because rented memory segments from ArrayPool<byte> or MemoryPool<byte> are not cleared upon return or strictly bounded to the exact written byte count during subsequent reads, residual response payloads from earlier HTTP requests remain in the buffer tail. Downstream consumers or log sinks reading these buffers expose confidential cross-session data, including authentication tokens and personally identifiable information.

Amit Schendel
Amit Schendel
2 views•11 min read
•about 4 hours ago•CVE-2026-114146
9.0

CVE-2026-114146: Elevation of Privilege in ASP.NET Core SignalR Connection Dispatcher

An incorrect authorization vulnerability (CWE-863) exists in the ASP.NET Core SignalR HTTP Connection Dispatcher (`Microsoft.AspNetCore.Http.Connections`). The connection negotiation process failed to bind the authenticated caller identity to the generated connection state, and subsequent transport or message dispatch handlers failed to verify caller consistency. Consequently, an authenticated low-privilege attacker who obtains a valid connection identifier or token can inject messages into or hijack another user's SignalR session, achieving an elevation of privilege across security boundaries.

Alon Barad
Alon Barad
5 views•11 min read
•about 5 hours ago•CVE-2026-109478
7.5

CVE-2026-109478: Algorithmic Complexity Denial of Service in ASP.NET Core Header Parsing

CVE-2026-109478 is a network-accessible Denial of Service (DoS) vulnerability in ASP.NET Core caused by inefficient algorithmic complexity (CWE-407) when parsing comma-separated HTTP request headers. Prior to the patch, the internal helper method ParsingHelpers.GetHeaderSplit repeatedly called StringValues.Concat inside a loop iterating over each comma-separated token. Because StringValues allocates a new array of size k + 1 and copies all existing elements upon each concatenation, processing N tokens incurs O(N^2) time and space complexity. An unauthenticated remote attacker can send HTTP requests with headers containing thousands of short, comma-separated values to exhaust CPU cycles and induce severe Garbage Collection (GC) pauses, rendering the web application unresponsive.

Alon Barad
Alon Barad
6 views•11 min read
•about 6 hours ago•CVE-2026-114147
7.5

CVE-2026-114147: Denial of Service via Memory Leak in ASP.NET Core SignalR Redis Backplane

CVE-2026-114147 is a high-severity Denial of Service (DoS) vulnerability affecting ASP.NET Core and specifically the Microsoft.AspNetCore.SignalR.StackExchangeRedis scale-out provider across .NET 8.0, 9.0, 10.0, and 11.0 preview releases. The vulnerability originates from a string comparison mismatch between internal per-connection group collections and the centralized Redis channel subscription registry, compounded by a race condition during connection teardown. Remote unauthenticated attackers can exploit this flaw to leave orphaned connection contexts and active Redis pub/sub listeners pinned in memory, leading to unbounded memory exhaustion and application process termination.

Amit Schendel
Amit Schendel
3 views•10 min read