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-F8R2-VG7X-GH8M

GHSA-f8r2-vg7x-gh8m: Path Overmatching and Command Execution Bypass in OpenClaw

Amit Schendel
Amit Schendel
Senior Security Researcher

Mar 14, 2026·5 min read·30 visits

Executive Summary (TL;DR)

A path overmatching flaw in OpenClaw's execution allowlist permits unauthorized command execution on POSIX systems by exploiting case insensitivity and broad glob wildcard matching.

OpenClaw versions up to 2026.3.8 suffer from an improper input validation vulnerability in the command execution allowlist mechanism. Flawed pattern matching logic, including improper lowercasing on POSIX systems and broad glob wildcard handling, allows an attacker to bypass execution restrictions and invoke unauthorized commands.

Vulnerability Overview

OpenClaw (formerly Moltbot or ClawdBot) is an open-source personal AI assistant system designed to interact with the underlying host operating system. To restrict the capabilities of the AI agent, administrators configure an execution allowlist. This allowlist defines the specific binaries and directory paths the agent is permitted to invoke during operation.

The vulnerability, tracked as GHSA-f8r2-vg7x-gh8m, exists within the matchesExecAllowlistPattern function. This function is responsible for enforcing the allowlist restrictions by comparing requested command paths against predefined operator rules. The implementation fails to correctly normalize paths and applies overly permissive wildcard matching during this evaluation.

These validation failures allow a compromised AI session or an external attacker to craft executable paths that bypass the intended restrictions. The flaw specifically affects POSIX-compliant systems, such as Linux and macOS, where file path semantics and case sensitivity are strictly enforced by the underlying filesystem.

Root Cause Analysis

The vulnerability stems from two distinct implementation errors in the matchesExecAllowlistPattern function. The first flaw involves improper normalization (CWE-178). The function normalizes both the allowlist patterns and the target command paths by converting them to lowercase before comparison. Because POSIX file systems are case-sensitive, this forced lowercasing creates a discrepancy between the application's access control logic and the operating system's execution logic.

The second flaw involves improper validation of syntactic correctness (CWE-1286) regarding glob pattern matching. The application uses a glob implementation where the ? wildcard, typically intended to match a single non-separator character, is permitted to match the / (forward slash) directory separator. This behavior deviates from standard secure path-matching paradigms.

When combined, these two issues allow pattern boundaries to be broken. An allowlist entry intended to restrict execution to a specific directory or a specific set of binaries can be coerced into approving paths that traverse outside the intended directory structure or match identically named binaries with different casing schemes.

Code Analysis

While exact patch diffs are abstracted, the logical flaw resides in the initial pre-processing and parsing of the path string. The vulnerable implementation applies a blanket .toLowerCase() method to both the user-supplied path and the allowlist pattern prior to executing the glob comparison.

// Vulnerable Conceptual Logic
function matchesExecAllowlistPattern(requestedPath, allowlistPattern) {
    const normalizedReq = requestedPath.toLowerCase();
    const normalizedPat = allowlistPattern.toLowerCase();
    // The glob library here allows '?' to match '/'
    return micromatch.isMatch(normalizedReq, normalizedPat);
}

The fix requires platform-aware normalization. On POSIX systems, case sensitivity must be preserved. Furthermore, the glob matching implementation must be configured or replaced to ensure that the ? wildcard explicitly rejects directory separators, constraining matches to single path segments.

// Patched Conceptual Logic
function matchesExecAllowlistPattern(requestedPath, allowlistPattern) {
    const isPosix = process.platform !== 'win32';
    const req = isPosix ? requestedPath : requestedPath.toLowerCase();
    const pat = isPosix ? allowlistPattern : allowlistPattern.toLowerCase();
    // Glob library configured to strictly prohibit '?' from matching '/'
    return micromatch.isMatch(req, pat, { dot: true, matchBase: false, strictSlashes: true });
}

This structural change ensures that the evaluation context directly mirrors the execution context of the host operating system, preventing authorization bypasses through path manipulation.

Exploitation Methodology

Exploitation requires an attacker to interact with the OpenClaw AI session and manipulate the command paths it attempts to execute. The attacker must first understand or infer the contents of the execution allowlist.

If the allowlist contains an entry using the ? wildcard, such as /usr/bin/??, the attacker can supply a path that leverages the separator-matching flaw. By requesting execution of /usr/bin/../tmp/evil.sh, the system evaluates the .. and directory separators against the ?? wildcards. If the wildcards consume the separators, the path is approved, and the attacker achieves execution outside the /usr/bin/ directory.

Alternatively, the attacker can exploit the case sensitivity flaw. If the allowlist permits /opt/Scripts/Safe.sh, an attacker can create a malicious script at /opt/scripts/safe.sh. The application lowercases both paths, resulting in a successful match, while the POSIX operating system executes the attacker's script instead of the administrator's intended script.

Impact Assessment

The primary consequence of this vulnerability is the unauthorized execution of binaries or scripts on the host operating system. Depending on the privileges granted to the OpenClaw service, an attacker can achieve varying levels of system compromise.

While the CVSS v4 score is calculated as 5.3 (Medium), this base score evaluates the vulnerability in a generic context. In environments where the OpenClaw agent operates with elevated privileges, or where the filesystem permits the creation of arbitrary scripts by unprivileged users, the real-world impact escalates directly to full Remote Code Execution (RCE).

The impact is concentrated entirely on POSIX-compliant operating systems. Windows environments, which natively employ case-insensitive file systems and different path separator semantics, are generally unaffected by the primary normalization vector.

Remediation and Mitigation

The vulnerability is addressed in OpenClaw versions 2026.3.11 and 2026.3.12. Administrators must upgrade the openclaw npm package to one of these patched releases immediately. The update corrects the path normalization logic to respect POSIX case sensitivity and hardens the glob matching behavior.

If immediate patching is not possible, administrators should audit their existing allowlist configurations. All broad wildcards, specifically the ? and * characters, must be removed or heavily restricted. Explicit, absolute paths should be used for all allowed binaries to eliminate pattern-matching ambiguity.

Furthermore, securing the host environment reduces the exploitation surface. Ensuring that the OpenClaw service runs with the minimum necessary privileges limits the potential damage of a successful bypass. Implementing strict file permissions on directories adjacent to allowed execution paths prevents attackers from staging malicious scripts.

Technical Appendix

CVSS Score
5.3/ 10
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Affected Systems

OpenClaw (formerly Moltbot/ClawdBot) running on POSIX systems (Linux, macOS)

Affected Versions Detail

Product
Affected Versions
Fixed Version
openclaw
OpenClaw
<= 2026.3.82026.3.11
AttributeDetail
Vulnerability TypeImproper Input Validation / Path Overmatching
CWE IDsCWE-178, CWE-1286, CWE-22
CVSS v4 Score5.3 (Medium)
Attack VectorNetwork
Exploit StatusProof of Concept (PoC)
ImpactUnauthorized Command Execution / RCE

MITRE ATT&CK Mapping

T1204.002User Execution: Malicious File
Execution
T1059Command and Scripting Interpreter
Execution
CWE-178
Improper Handling of Case Sensitivity

Improper handling of case sensitivity and syntactic correctness in path matching leads to security bypass.

Vulnerability Timeline

Disclosure of 8 security advisories in OpenClaw release blog.
2026-03-12
GHSA-f8r2-vg7x-gh8m published in the GitHub Advisory Database.
2026-03-13
Fix released in OpenClaw versions 2026.3.11 and 2026.3.12.
2026-03-13

References & Sources

  • [1]GitHub Advisory: GHSA-F8R2-VG7X-GH8M
  • [2]OpenClaw Release Blog
  • [3]OSV Entry: GHSA-f8r2-vg7x-gh8m
  • [4]OpenClaw Repository

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

•1 day ago•GHSA-7PPR-R889-MCF2
7.5

GHSA-7PPR-R889-MCF2: Unbounded WebSocket Message Aggregation in http4s-blaze-server leads to Denial of Service

An uncontrolled resource consumption vulnerability exists in the Scala-based http4s-blaze-server package of the http4s/blaze library. The vulnerability allows remote, unauthenticated attackers to cause an Out of Memory Error (OOM) and JVM crash by streaming a continuous sequence of small or empty WebSocket continuation frames with the FIN bit set to 0. This bypasses typical payload size checks because of the JVM's per-object allocation overhead, leading to rapid heap exhaustion with minimal network bandwidth.

Alon Barad
Alon Barad
7 views•5 min read
•1 day ago•GHSA-95CV-R8X4-VH75
7.6

GHSA-95cv-r8x4-vh75: Path Traversal Vulnerability in OpenList Batch Rename Handler

A critical path traversal vulnerability has been identified in the OpenList Go-based backend package. The vulnerability exists within the batch rename handler because the application does not validate the source filename parameter before constructing filesystems paths. This omission allows authenticated users to escape their designated directory and rename files in sibling paths.

Amit Schendel
Amit Schendel
8 views•7 min read
•1 day ago•GHSA-P6PH-3JX2-3337
4.3

GHSA-P6PH-3JX2-3337: Horizontal Privilege Escalation and Metadata Information Disclosure via Bleve Search in OpenList

OpenList version 4.2.3 and prior is vulnerable to an authorization bypass and metadata leakage. When configured with the Bleve search engine backend, OpenList fails to perform separator-aware path matching when validating tenant containment. This allows authenticated users to access sibling directories sharing similar name prefixes. Furthermore, the search backend returns unfiltered global result counts, leaking existence verification data of unauthorized files via side-channel analysis.

Amit Schendel
Amit Schendel
8 views•5 min read
•1 day ago•GHSA-86CX-WWF4-PHQ4
6.5

GHSA-86cx-wwf4-phq4: Path Prefix Confusion Authorization Bypass in OpenList

An authorization bypass vulnerability in OpenList version 4.2.3 and below allows authenticated users to read arbitrary files outside of their designated base directories due to an insecure path prefix check using Go's standard strings.HasPrefix function.

Amit Schendel
Amit Schendel
7 views•6 min read
•1 day ago•CVE-2026-16584
7.0

CVE-2026-16584: Security Policy Bypass in AWS API MCP Server via Startup Initialization Failure

A security policy bypass vulnerability exists in the AWS API MCP Server (awslabs-aws-api-mcp-server) from version 0.2.13 through 1.3.46. When the server fails to load the read-only operations index during startup (due to transient network failures, file permission issues, or other exceptions), it logs a warning but continues running in an insecure, degraded state. Under this condition, the security policy engine fails open, silently skipping all subsequent security checks and consent prompts for the lifetime of the process. This permits unauthorized mutating AWS CLI commands to execute via indirect prompt injection attacks.

Amit Schendel
Amit Schendel
10 views•7 min read
•1 day ago•GHSA-6V4M-FW66-8R4X
6.5

GHSA-6V4M-FW66-8R4X: Path Disclosure and Shell Expansion Bypass in Shescape

An incomplete escaping vulnerability in the npm package 'shescape' allows unauthenticated users to trigger dynamic shell expansions, absolute path disclosure, and command block break-outs on Unix and Windows systems.

Alon Barad
Alon Barad
6 views•7 min read