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·34 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

•41 minutes ago•CVE-2026-88007
9.1

CVE-2026-88007: Connection Hijacking and Unauthorized Session Reuse in Traefik HTTP/3 Proxying

CVE-2026-88007 is a critical vulnerability in Traefik where connection-bound backend authentication (like NTLM or Kerberos) is compromised over HTTP/3. Due to an uninitialized connection transport context, authenticated TCP sockets from a victim are leaked into a globally shared pool and subsequently reused by unrelated clients, leading to unauthenticated session hijacking.

Amit Schendel
Amit Schendel
1 views•7 min read
•about 2 hours ago•CVE-2026-88004
7.0

CVE-2026-88004: Security Bypass in Traefik Entrypoint Protections via Smuggled Request Trailers

An interpretation conflict and security bypass vulnerability in the entrypoint security mechanisms of Traefik allows unauthenticated remote attackers to bypass header-name sanitization and strip/reject policies. By smuggling sensitive, protected, or trusted header names inside an HTTP/1.1 chunked trailer or an HTTP/2 trailer, attackers can bypass Traefik's security defenses if a downstream backend merges trailers into the header namespace.

Alon Barad
Alon Barad
3 views•5 min read
•about 3 hours ago•CVE-2026-88008
7.0

CVE-2026-88008: Middleware Security Bypass via Unencrypted HTTP/2 (h2c) Connection Upgrades in Traefik

An architectural flaw in the Traefik reverse proxy allows unauthenticated remote attackers to bypass security middlewares (such as basic authentication, IP allowlists, and forward authorization) by initiating an unencrypted HTTP/2 (h2c) upgrade request, causing the proxy to transition the connection into an opaque bi-directional TCP tunnel.

Amit Schendel
Amit Schendel
2 views•6 min read
•about 4 hours ago•CVE-2026-88006
6.5

CVE-2026-88006: Incorrect Authorization in Open WebUI OAuth Token Exchange

An incorrect authorization vulnerability in Open WebUI allows users to bypass Identity Provider (IdP) role revocations and demotions. Prior to version 0.11.1, the OAuth token exchange endpoint failed to execute user synchronization and group mapping checks, enabling users with active provider tokens to establish sessions with their cached, stale database roles.

Amit Schendel
Amit Schendel
3 views•6 min read
•about 5 hours ago•CVE-2026-88016
7.1

CVE-2026-88016: Arbitrary Filesystem Metadata Modification and Directory Traversal in rclone

CVE-2026-88016 is a high-severity directory traversal and arbitrary metadata modification vulnerability in rclone versions prior to 1.75.1. When synchronizing directories with the `--links` and `--metadata` flags, rclone fails to apply sandboxing to directory metadata operations, leading to symbolic link following that allows modification of arbitrary files outside the target destination.

Amit Schendel
Amit Schendel
5 views•7 min read
•about 6 hours ago•GHSA-M3WP-48JR-VR4G
7.5

GHSA-m3wp-48jr-vr4g: Unbounded Remote Media Fetch and Video Frame Expansion DoS in mistral.rs

An unbounded resource consumption and server-side request forgery (SSRF) vulnerability in mistral.rs allows remote, unauthenticated attackers to cause a denial of service (DoS) or execute SSRF attacks. The flaw exists in mistralrs-server-core due to unchecked remote media fetching, infinite stream buffering, and unbounded FFmpeg frame extraction.

Amit Schendel
Amit Schendel
6 views•8 min read