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-H4JX-HJR3-FHGC

GHSA-H4JX-HJR3-FHGC: Privilege Escalation via Synthetic Administrator Scopes in OpenClaw Gateway Plugin Subagent

Amit Schendel
Amit Schendel
Senior Security Researcher

Mar 29, 2026·5 min read·23 visits

Executive Summary (TL;DR)

OpenClaw Gateway Plugin Subagent improperly injects an administrative scope during session deletion, allowing low-privileged plugins to delete arbitrary sessions.

The OpenClaw platform versions up to 2026.3.24 contain a high-severity incorrect authorization vulnerability within the Gateway Plugin Subagent runtime. A hardcoded synthetic scope grants administrative privileges to the `deleteSession` method, allowing any plugin to bypass authorization and delete arbitrary session data across the instance.

Vulnerability Overview

The OpenClaw platform utilizes a Gateway Plugin Subagent to manage execution contexts for various plugins. This subagent runtime operates as an intermediary, processing requests from individual plugins and dispatching them to the central gateway backend. The architecture relies on strict privilege separation, ensuring that plugins can only access resources explicitly granted to their execution context.

A high-severity vulnerability exists in the deleteSession method of the subagent runtime. This method facilitates the removal of session data and associated transcripts. The vulnerability arises from an incorrect privilege assignment (CWE-266) where the method programmatically elevates its own privileges before dispatching the deletion request to the gateway.

By injecting a synthetic administrative scope, the subagent overrides the actual caller's security context. This exposes a direct authorization bypass to any plugin interacting with the subagent runtime. A low-privileged actor can leverage this flaw to perform administrative actions, specifically the deletion of arbitrary session data belonging to other users or administrators across the entire OpenClaw instance.

Root Cause Analysis

The root cause of this vulnerability is a hardcoded security bypass mechanism within the src/gateway/server-plugins.ts file. The OpenClaw gateway backend exposes a sessions.delete method, which enforces strict authorization checks to ensure the caller owns the target session or possesses global administrative rights.

To allow subagents to manage their own sessions, the developers implemented a wrapper method named deleteSession. This wrapper utilizes the dispatchGatewayMethod function to communicate with the backend. However, instead of passing the caller's authentic security context, the implementation includes a hardcoded options object containing { syntheticScopes: [ADMIN_SCOPE] }.

The syntheticScopes parameter is an internal system mechanism designed for automated, highly trusted background tasks that require elevated privileges. Exposing this mechanism within a generic plugin API creates an immediate privilege escalation path. When the gateway receives the sessions.delete request, it evaluates the injected ADMIN_SCOPE rather than the caller's actual token, concluding that the request originates from a system administrator.

Code Analysis and Patch Verification

The vulnerability manifests in the src/gateway/server-plugins.ts file within the deleteSession method implementation. The code explicitly overrides the authorization context by passing a third argument to dispatchGatewayMethod.

    async deleteSession(params) {
      await dispatchGatewayMethod(
        "sessions.delete",
        {
          key: params.sessionKey,
          deleteTranscript: params.deleteTranscript ?? true,
        },
        {
          syntheticScopes: [ADMIN_SCOPE],
        },
      );
    },

The patched version removes the options object entirely. By omitting the syntheticScopes argument, the dispatchGatewayMethod falls back to its default behavior. It extracts the security context from the active plugin caller rather than applying a hardcoded override.

    async deleteSession(params) {
      await dispatchGatewayMethod("sessions.delete", {
        key: params.sessionKey,
        deleteTranscript: params.deleteTranscript ?? true,
      });
    },

This change ensures that the gateway backend receives the authentic execution context. The backend will subsequently perform a standard authorization check, verifying if the caller possesses the necessary permissions or ownership over the requested sessionKey. The fix completely addresses the privilege escalation vector in this specific method.

Exploitation Methodology

Exploitation requires network access to the OpenClaw instance and low-level privileges capable of triggering a plugin that utilizes the subagent runtime. No user interaction or administrative access is necessary. The attacker identifies a vulnerable plugin endpoint that passes user-controlled parameters to the subagent's deleteSession method.

The attacker crafts a payload specifying a target sessionKey that belongs to another user or an administrator. When the plugin invokes deleteSession, the subagent intercepts the request and appends the ADMIN_SCOPE before forwarding it to the gateway.

The gateway backend processes the request under the assumption that it originated from an administrator. The session and its associated transcripts are permanently deleted from the system data store. The attacker receives a standard success confirmation, confirming the data destruction.

Impact Assessment

The vulnerability carries a High severity rating with a CVSS v3.1 base score of 8.8 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H). The impact encompasses complete loss of integrity and availability for session data and transcripts managed by the OpenClaw platform.

An attacker can systematically enumerate and delete active sessions, forcing widespread administrative logouts and causing a persistent denial-of-service condition for authenticated users. The deletion of session transcripts also presents a severe data destruction risk, particularly in environments where OpenClaw logs contain critical audit trails or operational data.

While the confidentiality impact is rated High in the CVSS vector, this pertains to the loss of protection over the data's lifecycle rather than direct data exfiltration. The attacker cannot directly read the sessions, but they exercise total control over their existence. The public availability of a functional proof-of-concept increases the likelihood of active exploitation.

Remediation and Mitigation Guidance

The primary remediation strategy requires updating the openclaw NPM package to version 2026.3.25 or later. This release contains the complete fix for the authorization bypass in src/gateway/server-plugins.ts.

Organizations utilizing custom plugins or heavily modified forks of OpenClaw must audit their codebase. Security teams should search for instances of syntheticScopes or ADMIN_SCOPE being passed to dispatchGatewayMethod or similar internal APIs. Any usage within public-facing or user-triggerable plugin methods constitutes a direct privilege escalation vulnerability.

If immediate patching is not feasible, implement network-level monitoring to detect exploitation attempts. Security engineers should configure alerting for gateway logs exhibiting an unusually high volume of sessions.delete operations. Specifically, monitor for deletion events originating from subagent contexts that target session keys outside the caller's expected ownership domain.

Official Patches

OpenClawOfficial fix commit removing synthetic scopes

Fix Analysis (1)

Technical Appendix

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

Affected Systems

OpenClaw GatewayOpenClaw Plugin Subagent Runtime

Affected Versions Detail

Product
Affected Versions
Fixed Version
openclaw
OpenClaw
<= 2026.3.242026.3.25
AttributeDetail
CWE IDCWE-266
Attack VectorNetwork
Privileges RequiredLow
CVSS Base Score8.8
ImpactHigh (Data Destruction & Privilege Escalation)
Exploit StatusFunctional PoC Available

MITRE ATT&CK Mapping

T1068Exploitation for Privilege Escalation
Privilege Escalation
T1485Data Destruction
Impact
CWE-266
Incorrect Privilege Assignment

Incorrect Privilege Assignment

Vulnerability Timeline

Vulnerability discovered and reported.
2026-03-24
Official patch released in version 2026.3.25.
2026-03-25
Technical fix commit finalized and advisory published.
2026-03-26

References & Sources

  • [1]GitHub Advisory: GHSA-H4JX-HJR3-FHGC
  • [2]Aliyun AVD: AVD-2026-1863802
  • [3]OpenClaw Fix Commit
  • [4]OpenClaw Vulnerability Tracker

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

•about 3 hours ago•CVE-2026-55700
7.1

CVE-2026-55700: Path Traversal and Arbitrary File Write in pnpm stage download

A path traversal vulnerability in pnpm stage download allows malicious registries or compromised package manifests to overwrite arbitrary files on the victim's filesystem via unvalidated package name and version fields.

Alon Barad
Alon Barad
5 views•4 min read
•about 5 hours ago•GHSA-WW5P-J6CJ-6MQQ
5.5

GHSA-WW5P-J6CJ-6MQQ: Credential Exposure in Nezha Dashboard DDNS and Notification APIs

GHSA-WW5P-J6CJ-6MQQ is a technical credential exposure vulnerability in Nezha Dashboard prior to version 2.2.5. The vulnerability allows authenticated administrative users or actors possessing scoped read-only Personal Access Tokens (PATs) to exfiltrate plaintext third-party API credentials, secret keys, and webhook authorization headers due to a lack of data redaction during API object serialization.

Amit Schendel
Amit Schendel
5 views•7 min read
•about 6 hours ago•GHSA-FR4H-3CPH-29XV
7.1

GHSA-FR4H-3CPH-29XV: Path Traversal and Directory Hijacking in pnpm and pacquet Dependency Resolution

GHSA-FR4H-3CPH-29XV is a high-severity path traversal vulnerability in pnpm and its Rust-based port pacquet. The flaw manifests when using the hoisted node-linker configuration, allowing an attacker to manipulate the lockfile to resolve relative traversal sequences or target reserved subdirectories, leading to arbitrary file write or execution hijacking.

Amit Schendel
Amit Schendel
5 views•8 min read
•about 9 hours ago•GHSA-72R4-9C5J-MJ57
7.1

GHSA-72R4-9C5J-MJ57: Arbitrary File Deletion via Path Traversal in pnpm patch-remove

A path traversal vulnerability in the pnpm package manager's 'patch-remove' command allows an attacker to delete arbitrary files outside the patches directory. By manipulating configuration files like package.json, an attacker can specify a traversal path that the application deletes recursively without validating the path's containment.

Alon Barad
Alon Barad
5 views•5 min read
•about 10 hours ago•GHSA-QRV3-253H-G69C
8.3

GHSA-QRV3-253H-G69C: Path Traversal and Arbitrary Symlink Creation via configDependencies in pnpm

A high-severity path traversal vulnerability exists in the pnpm package manager. By crafting a malicious lockfile (pnpm-lock.yaml) with path traversal characters in the configDependencies block, an attacker can create arbitrary directories and symlinks outside the project's node_modules/.pnpm-config directory. This exploitation happens automatically during pnpm installation, even when executing with scripts disabled via the --ignore-scripts flag.

Amit Schendel
Amit Schendel
5 views•7 min read
•about 11 hours ago•CVE-2026-49340
8.1

CVE-2026-49340: Arbitrary File Write via Path Traversal in Gonic Subsonic Playlist Handler

An arbitrary file write vulnerability exists in Gonic, a music streaming server implementing the Subsonic API. Due to an unreachable guard clause combined with missing path containment validation in the playlist storage engine, authenticated users can write playlist contents to arbitrary filesystem paths with overly permissive directory permissions.

Alon Barad
Alon Barad
8 views•7 min read