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-V6X2-2QVM-6GV8

GHSA-V6X2-2QVM-6GV8: Critical Token Leak via Insecure Hashing Fallback in OpenClaw

Amit Schendel
Amit Schendel
Senior Security Researcher

Mar 4, 2026·5 min read·47 visits

Executive Summary (TL;DR)

OpenClaw reuses the primary gateway authentication token as a salt for hashing user IDs sent to LLM providers. Attackers with access to LLM logs can brute-force these hashes to recover the admin token, granting full control over the AI assistant. Fixed in version 2026.2.22.

A critical vulnerability in OpenClaw allows for the recovery of high-privilege gateway authentication tokens due to an insecure fallback mechanism in the privacy-preservation logic. When anonymizing owner identifiers for external LLM prompts, the system defaults to using the sensitive `gateway.auth.token` as a cryptographic salt if no dedicated display secret is configured. This results in the transmission of hashes derived from the authentication token to third-party providers, enabling offline brute-force attacks to recover the administrative credentials.

Vulnerability Overview

OpenClaw, a personal AI assistant, interacts with third-party Large Language Model (LLM) providers by sending system prompts that often include user context. To preserve privacy, the system supports an ownerDisplay: "hash" configuration, which replaces cleartext owner identifiers (such as phone numbers or user names) with cryptographic hashes before transmission.

However, prior to version 2026.2.22, the implementation of this hashing mechanism contained a critical flaw in its key management logic. If the user did not explicitly configure a commands.ownerDisplaySecret, the application fell back to using the gateway.auth.token or gateway.remote.token as the salt for the hash operation. These tokens are high-privilege credentials used for authenticating with the OpenClaw gateway and executing administrative commands.

By using the authentication token as a salt for low-entropy inputs (like phone numbers) and transmitting the resulting hash to external entities (LLM providers), OpenClaw inadvertently exposed the token to offline cryptographic attacks. This violation of the principle of key separation transforms a privacy feature into a mechanism for credential exfiltration.

Root Cause Analysis

The vulnerability resides in the configuration resolution logic within the agent runners, specifically in src/agents/cli-runner/helpers.ts and embedded runner counterparts. The root cause is an insecure fallback chain implemented using the nullish coalescing operator (??) in the buildAgentSystemPrompt or helper functions.

When the system prepares the prompt context, it attempts to resolve the ownerDisplaySecret. The vulnerable code path prioritized the specific secret but dangerously fell back to sensitive authentication tokens if the specific secret was undefined. This logic effectively treated the authentication token as a dual-use secret: both for API access control and as entropy for data masking.

Technically, this manifests as a CWE-1204 (Generation of Weak Initialization Vector/Salt) and CWE-200 (Exposure of Sensitive Information). Because the output of this operation (the hashed owner ID) is sent to external servers (OpenAI, Anthropic, etc.), the secret material used to generate the hash leaves the trust boundary of the local OpenClaw instance.

Code Analysis

The following analysis of src/agents/cli-runner/helpers.ts illustrates the insecure fallback and the subsequent remediation.

Vulnerable Code (Pre-Patch): The code directly accesses the gateway tokens if ownerDisplaySecret is missing. This tightly couples the hashing logic with administrative credentials.

// src/agents/cli-runner/helpers.ts
const ownerDisplaySecret =
  params.config?.commands?.ownerDisplaySecret ??
  params.config?.gateway?.auth?.token ??  // <--- CRITICAL: Leaks Auth Token
  params.config?.gateway?.remote?.token;  // <--- CRITICAL: Leaks Remote Token

Fixed Code (Patch 2026.2.22): The fix involves decoupling the display secret from the gateway configuration. The fallback to gateway.auth.token is removed entirely. A new helper function resolveOwnerDisplaySetting is introduced to ensure a dedicated secret exists, generating a random 32-byte buffer if necessary.

// src/agents/cli-runner/helpers.ts
import { resolveOwnerDisplaySetting } from '../utils/config';
 
// ... inside function
const ownerDisplay = resolveOwnerDisplaySetting(params.config);
 
return buildAgentSystemPrompt({
  // ... other params
  ownerDisplay: ownerDisplay.ownerDisplay,
  // FALLBACK REMOVED: Now uses a strictly dedicated secret
  ownerDisplaySecret: ownerDisplay.ownerDisplaySecret,
});

This change ensures that even if the configuration is incomplete, the system will never silently downgrade security by reusing the master authentication token.

Exploitation Methodology

An attacker does not need direct access to the OpenClaw instance to exploit this vulnerability; they require access to the data sent to the LLM provider or the logs thereof. This could be achieved by an attacker with access to the LLM provider's logs, a Man-in-the-Middle (MitM) attacker on the network (if TLS is compromised or terminated early), or through shared access to conversation histories.

Attack Steps:

  1. Intercept Hash: The attacker obtains the hashed owner ID from the system prompt sent to the LLM. Example: Hash("+15550199", Salt).
  2. Identify Input Space: The attacker identifies the likely input. Since owner IDs are often phone numbers or simple usernames, the entropy of the input is extremely low (e.g., a 10-digit phone number space is trivial to enumerate).
  3. Offline Brute-Force: The attacker performs an offline dictionary or brute-force attack. They iterate through possible phone numbers and candidate salts. However, specifically here, they treat the salt as the unknown variable if they know the phone number (target), or they use the known structure of OpenClaw tokens to reduce the search space.
  4. Credential Recovery: Once the hash collision is found, the Salt value is revealed. Due to the vulnerability, this Salt is the gateway.auth.token.
  5. System Compromise: The attacker uses the recovered token to authenticate against the OpenClaw API, enabling them to execute arbitrary commands, modify configurations, or exfiltrate personal data.

Impact Assessment

The impact of this vulnerability is critical because it breaks the fundamental security barrier of the application: authentication.

  • Confidentiality (High): The gateway.auth.token is the master key for the OpenClaw instance. Its compromise allows full read access to all stored data, conversation history, and connected integrations.
  • Integrity (High): With the auth token, an attacker can modify system behavior, inject malicious instructions into the AI agent, or alter configuration files.
  • Availability (High): An attacker can shut down the agent, revoke access for legitimate users, or effectively brick the installation.

CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (Score: 9.8). The attack vector is Network, complexity is Low (once logs are accessed), and no privileges or user interaction are required.

Official Patches

OpenClawOfficial patch commit removing the insecure fallback

Fix Analysis (1)

Technical Appendix

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

Affected Systems

OpenClaw Gateway (CLI Runner)OpenClaw Embedded Runners

Affected Versions Detail

Product
Affected Versions
Fixed Version
OpenClaw
OpenClaw
< 2026.2.222026.2.22
AttributeDetail
CWE IDCWE-1204 (Weak Salt)
CVSS v3.19.8 (Critical)
Attack VectorNetwork
ImpactCredential Exposure / RCE
Exploit StatusPoc Available
Patch Date2026-02-22

MITRE ATT&CK Mapping

T1552Unsecured Credentials
Credential Access
T1110Brute Force
Credential Access
T1528Steal Application Access Token
Credential Access
CWE-1204
Generation of Weak Initialization Vector (IV)

References & Sources

  • [1]GHSA-V6X2-2QVM-6GV8 Advisory
  • [2]The Hacker News Report
Related Vulnerabilities
CVE-2026-25253

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 5 hours ago•CVE-2026-63304
8.1

CVE-2026-63304: OS Command Injection in WWBN AVideo via listFFmpegProcesses

WWBN AVideo versions through 29.0 contain an OS command injection vulnerability (CWE-78) in the standalone API utility function listFFmpegProcesses(). The function constructs a shell pipeline to monitor active FFmpeg processes by interpolating a user-controlled keyword parameter directly into a single-quoted grep argument without sanitization or shell escaping. An attacker capable of crafting or submitting a valid encrypted codeToExec payload can break out of the single-quoted argument context and execute arbitrary operating system commands with the privileges of the web server user.

Alon Barad
Alon Barad
3 views•9 min read
•about 6 hours ago•CVE-2026-59726
10.0

CVE-2026-59726: Unauthenticated Remote Code Execution in Ruflo MCP Bridge

Ruflo versions prior to 3.16.3 expose the Model Context Protocol (MCP) bridge HTTP endpoints (`POST /mcp` and `POST /mcp/:group`) on all network interfaces (`0.0.0.0:3001`) without authentication. Because the primary JSON-RPC tool dispatcher (`executeTool()`) bypasses existing tool blocklists, an unauthenticated network attacker can invoke the `terminal_execute` tool to achieve arbitrary command execution inside the bridge container. This initial access permits full exfiltration of third-party LLM provider API keys, unauthorized access to the co-located MongoDB instance, and manipulation of the AgentDB learning store.

Alon Barad
Alon Barad
8 views•2 min read
•about 7 hours ago•CVE-2026-59818
6.5

CVE-2026-59818: Improper Certificate Revocation List (CRL) Validation on Split gRPC Listeners in etcd

In etcd versions prior to 3.5.32 and 3.6.13, configuring the server with --listen-client-http-urls decouples HTTP and gRPC traffic onto distinct network listeners. Due to an implementation flaw in how TLS configurations are passed to the gRPC server instance, the Certificate Revocation List (CRL) defined by --client-crl-file is enforced exclusively on the HTTP listener and omitted entirely on the dedicated gRPC listener. This allows an adversary possessing a revoked, CA-signed client certificate to bypass mutual TLS (mTLS) revocation checks and authenticate directly to the gRPC interface.

Amit Schendel
Amit Schendel
6 views•10 min read
•about 8 hours ago•CVE-2026-59831
4.4

CVE-2026-59831: Remote Code Execution via Unvalidated URL Scheme Handling in GitHub CLI

GitHub CLI (gh) versions 2.10.0 through 2.95.0 contain an input validation vulnerability in the `gh codespace jupyter` command path. When connecting to a remote Codespace to launch a JupyterLab session, the CLI retrieves a server URL via a remote procedure call (RPC) and passes it directly to the host operating system's default URL dispatcher without validating the scheme or target host. A compromised or malicious Codespace can return a custom protocol URI, such as `vscode://` or `vscode-insiders://`, allowing an attacker to invoke local desktop application handlers and achieve arbitrary command execution on the developer's workstation.

Alon Barad
Alon Barad
11 views•9 min read
•about 9 hours ago•CVE-2026-59191
6.9

CVE-2026-59191: Path Traversal and Arbitrary File Read in CakePHP TwigView FileLoader

A path traversal vulnerability exists in the cakephp/twig-view plugin for the CakePHP framework prior to versions 1.3.3 and 2.1.2. The Cake\TwigView\Twig\FileLoader::findTemplate() method verifies template existence using PHP's native file_exists() function without ensuring the target path resides within configured application or plugin template directories. When user-controlled input is passed to template inclusion mechanisms, an unauthenticated remote attacker can read arbitrary local files accessible to the PHP runtime.

Alon Barad
Alon Barad
5 views•9 min read
•about 10 hours ago•CVE-2026-64855
8.2

CVE-2026-64855: Cryptographic Signature Verification Bypass in soapbar WS-Security Implementation

CVE-2026-64855 (GHSA-859w-52fx-hcm6) is a cryptographic signature verification and authentication bypass vulnerability in the soapbar Python library prior to version 0.13.0. In vulnerable versions, the verify_envelope_bsp() function derives its trust anchor directly from the incoming SOAP message by extracting an untrusted X.509 certificate embedded inside the wsse:BinarySecurityToken header. Because the function checks only the temporal validity of the extracted certificate without performing Certificate Authority (CA) chain validation or certificate pinning, an unauthenticated network attacker can generate a self-signed certificate, sign an arbitrary SOAP payload, and pass verification.

Amit Schendel
Amit Schendel
9 views•10 min read