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-M8V2-6WWH-R4GC

GHSA-M8V2-6WWH-R4GC: Sandbox Escape via Symlink Manipulation in OpenClaw

Amit Schendel
Amit Schendel
Senior Security Researcher

Mar 4, 2026·6 min read·53 visits

Executive Summary (TL;DR)

OpenClaw failed to resolve symlinks for paths where the final file (leaf) did not exist. Attackers can exploit this by creating symlinks to sensitive host directories and mounting non-existent files through them, achieving arbitrary file write access on the host.

A critical logic error in OpenClaw's path validation mechanism allows attackers to bypass sandbox restrictions. By requesting bind mounts for non-existent files within symlinked parent directories, attackers can trick the validation logic into accepting paths that resolve to restricted host directories (e.g., /etc or /var). This effectively breaks the security boundary between the sandboxed agent and the host system.

Vulnerability Overview

OpenClaw, a platform for personal AI agents, utilizes a sandbox environment to isolate agent operations from the host system. To maintain security, the platform enforces strict validation on bind mounts, ensuring that agents can only access specific allowed directories (e.g., a designated workspace) and are blocked from sensitive system paths.

The vulnerability, identified as GHSA-M8V2-6WWH-R4GC, resides in the validateBindMounts function. It allows a malicious actor to bypass these restrictions by leveraging a flaw in how the system handles paths that do not currently exist on the disk. Specifically, the validation logic fails to canonicalize paths when the target file (the "leaf" node) is missing, even if the parent directories contain symlinks pointing to restricted locations. This results in a classic Time-of-Check Time-of-Use (TOCTOU) style logical bypass, granting the sandbox read/write access to the host filesystem.

Root Cause Analysis

The root cause lies in the tryRealpathAbsolute helper function within src/agents/sandbox/validate-sandbox-security.ts. This function is responsible for resolving a given path to its canonical absolute form (resolving all symlinks and .. segments) before security checks are applied against the allowedSourceRoots list.

The flaw stems from a performance optimization or logic oversight: the function checks if the full path exists using existsSync(path). If the path does not exist, the function immediately returns the raw, unvalidated input path without attempting to resolve the parent directory structure.

// VULNERABLE LOGIC
if (!existsSync(path)) return path; // Returns raw path if leaf is missing

This behavior assumes that a non-existent path is safe or cannot reference a restricted location. However, in a UNIX-like filesystem, a path like /safe/workspace/symlink_to_etc/new_file might not exist as a file, but its resolution depends on symlink_to_etc. By returning the raw path, the validator checks /safe/workspace/... (which passes the allowlist) instead of /etc/new_file (which would be blocked).

Code Analysis

The following comparison illustrates the critical change in the patch. The fix ensures that even if the final file is missing, the validation logic traverses up the directory tree to find the nearest existing ancestor and resolves the path from there.

Vulnerable Implementation

function tryRealpathAbsolute(path: string): string {
  if (!path.startsWith("/")) return path;
  
  // CRITICAL FLAW: Short-circuit prevents resolution of parent symlinks
  if (!existsSync(path)) return path; 
  
  try {
    return normalizeHostPath(realpathSync.native(path));
  } catch {
    return path;
  }
}

Patched Implementation

The fix introduces resolvePathViaExistingAncestor, which handles missing leaf nodes correctly:

function resolvePathViaExistingAncestor(sourcePath: string): string {
  if (!sourcePath.startsWith("/")) return sourcePath;
  const normalized = normalizeHostPath(sourcePath);
  let current = normalized;
  const missingSegments: string[] = [];
 
  // Walk up until an existing directory is found
  while (current !== "/" && !existsSync(current)) {
    missingSegments.unshift(posix.basename(current));
    current = posix.dirname(current);
  }
 
  // If we hit root and nothing exists, return original
  if (!existsSync(current)) return normalized;
 
  try {
    // Resolve the deepest existing ancestor
    const resolvedAncestor = normalizeHostPath(realpathSync.native(current));
    
    // Reconstruct the full path with the resolved base + missing segments
    if (missingSegments.length === 0) return resolvedAncestor;
    return normalizeHostPath(posix.join(resolvedAncestor, ...missingSegments));
  } catch {
    return normalized;
  }
}

Exploitation Scenario

An attacker with control over the agent's workspace can exploit this vulnerability to write files to arbitrary locations on the host system (e.g., creating a cron job or modifying SSH keys).

Prerequisites

  1. Access: The attacker must be able to execute code within the OpenClaw agent or manipulate the workspace files.
  2. Mount Capability: The attacker must be able to trigger a new bind mount operation (e.g., requesting a new tool or storage allocation).

Attack Steps

  1. Create Malicious Symlink: Inside the allowed workspace (e.g., /home/user/openclaw/workspace), the attacker creates a symlink pointing to a sensitive system directory.
    ln -s /etc/cron.d /home/user/openclaw/workspace/exploit_link
  2. Request Bind Mount: The attacker requests OpenClaw to bind mount a non-existent file path through that symlink.
    • Source: /home/user/openclaw/workspace/exploit_link/evil_job
    • Target: /mnt/agent/job
  3. Bypass Validation:
    • The validator sees the path starts with the allowed root /home/user/openclaw/workspace.
    • It calls tryRealpathAbsolute. Since evil_job does not exist yet, existsSync fails, and the function returns the raw path.
    • The raw path passes the allowedSourceRoots check.
  4. Execution: The container runtime performs the mount. The OS resolves the symlink /home/user/openclaw/workspace/exploit_link to /etc/cron.d. The bind mount connects /etc/cron.d/evil_job on the host to /mnt/agent/job in the container.
  5. Impact: The attacker writes a malicious cron entry to /mnt/agent/job, which appears on the host at /etc/cron.d/evil_job and is executed by the host system.

Impact Assessment

The impact of this vulnerability is Critical for deployments where the host system is sensitive.

  • Host Compromise: By writing to locations like /etc/cron.d, /root/.ssh, or /etc/ld.so.conf.d, an attacker can escalate privileges from the sandboxed agent to full root access on the host machine.
  • Data Exfiltration: While the primary vector described is for writing new files, if the attacker can guess filenames that do not exist yet but will be created by the system, they could potentially hijack those files. Furthermore, blind writes can disrupt system stability.
  • Bypass of Security Controls: This effectively nullifies the blocked-path configuration intended to protect sensitive paths like /proc, /sys, and /var.

CVSS Vector (Estimated): CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H (High/Critical). The Scope change (S:C) is key here, as the vulnerability allows the attacker to break out of the sandbox (the constrained component) and affect the host (the user component).

Remediation

Users must upgrade OpenClaw immediately to a version that includes the patch from February 24, 2026.

Official Patch

  • Fixed Version: OpenClaw versions released after 2026.2.23.
  • Commit: b5787e4abba0dcc6baf09051099f6773c1679ec1

Temporary Workarounds

If an upgrade is not immediately possible:

  1. Disable Bind Mounts: Configure agents to run without host bind mounts if possible.
  2. Monitor Filesystem: Use auditd or similar tools to monitor for symlink creation within agent workspaces pointing to /, /etc, or /var.
  3. Strict Root Allowlist: Ensure allowedSourceRoots are as specific as possible and do not reside on filesystems where untrusted users can create symlinks.

Official Patches

OpenClawPatch commit on GitHub

Fix Analysis (1)

Technical Appendix

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

Affected Systems

OpenClaw AI Agent Platform

Affected Versions Detail

Product
Affected Versions
Fixed Version
OpenClaw
OpenClaw
<= 2026.2.23Post-2026.2.23
AttributeDetail
CWE IDCWE-59 (Link Following)
Attack VectorLocal (Sandbox Escape)
ImpactHost Filesystem Read/Write
CVSS Score8.2 (High)
Exploit StatusPoC Available
Affected ComponentvalidateBindMounts

MITRE ATT&CK Mapping

T1611Escape to Host
Privilege Escalation
T1548Abuse Elevation Control Mechanism
Privilege Escalation
CWE-59
Link Following

Improper Link Resolution Before File Access ('Link Following')

Vulnerability Timeline

Last vulnerable version released
2026-02-23
Vulnerability disclosed and patch committed
2026-02-24
Public advisories issued
2026-02-27

References & Sources

  • [1]GitHub Advisory GHSA-M8V2-6WWH-R4GC
  • [2]BSI Security Warning

More Reports

•15 minutes ago•CVE-2026-63123
6.5

CVE-2026-63123: Cross-Site Request Forgery leading to Cross-Origin Arbitrary File Write in @tinacms/cli

A Cross-Site Request Forgery (CSRF) vulnerability in the local development server of @tinacms/cli allowed malicious cross-origin pages to send state-changing HTTP requests. This issue permitted attackers to write arbitrary files into a developer's project directory or manipulate search and GraphQL indices without authorization.

Amit Schendel
Amit Schendel
0 views•4 min read
•about 1 hour ago•CVE-2026-63188
8.7

CVE-2026-63188: Unauthenticated Directory Traversal in @logto/tunnel

A high-severity path traversal vulnerability exists in the @logto/tunnel npm package (part of the Logto repository) prior to version 0.3.9. Remote unauthenticated attackers can exploit this vulnerability to read arbitrary local files by sending crafted HTTP requests with directory traversal sequences when the static file proxy is active.

Alon Barad
Alon Barad
3 views•7 min read
•about 8 hours ago•CVE-2026-54347
8.7

CVE-2026-54347: Stored Cross-Site Scripting in Froxlor DNS TXT Record Configuration

A critical stored Cross-Site Scripting (XSS) vulnerability was identified in Froxlor server administration software panel before version 2.3.8. Authenticated customers with DNS editor privileges can inject malicious JavaScript into DNS TXT records. Because the application processes these values via a raw formatting callback without context-aware HTML entity encoding, the payload executes in the security context of administrative users who view the affected domain's DNS zones.

Amit Schendel
Amit Schendel
3 views•6 min read
•about 9 hours ago•CVE-2026-54348
7.2

CVE-2026-54348: Second-Order SQL Injection in Froxlor API Layer

An authenticated administrator with privileges to manage admin accounts (such as change_serversettings) can execute arbitrary SQL commands via a second-order SQL injection vulnerability. The flaw resides in Froxlor's administrative API endpoints, specifically during the handling of IP address mapping parameters which are stored as serialized arrays and later interpolated without sanitization into active database queries. This vulnerability allows high-privileged administrative attackers to compromise the database. By injecting a payload into administrative profile metadata, an attacker can extract sensitive credentials, manipulate backend settings, or potentially disrupt database integrity. The vulnerability affects all versions of Froxlor prior to 2.3.8.

Amit Schendel
Amit Schendel
4 views•6 min read
•about 10 hours ago•CVE-2026-54543
5.4

CVE-2026-54543: DNS Resource Record (RR) Injection in Froxlor DomainZones API

CVE-2026-54543 is a DNS Resource Record (RR) Injection vulnerability in Froxlor, an open-source server administration control panel. Prior to version 2.3.8, the DomainZones.add API command failed to perform strict sanitization and validation on the user-controlled record (label) and type parameters before serializing them into BIND-compatible zone files. An authenticated customer with DNS zone management permissions can inject control characters, breaking out of the original record context to define unauthorized resource records within managed zones.

Amit Schendel
Amit Schendel
4 views•7 min read
•about 10 hours ago•CVE-2026-42533
9.2

CVE-2026-42533: NGINX Map Directive and Regex Matching Pre-Auth Heap Buffer Overflow & Info Leak

CVE-2026-42533 is a critical security vulnerability discovered in NGINX Open Source, NGINX Plus, NGINX Ingress Controller, and related products, referred to as the 'Two-Pass Capture-Clobbering' bug. The flaw is situated within NGINX's internal evaluation engine when handling complex variables, exposing a heap-based buffer overflow and information leak when a configuration chains regular expression-based map directives with numbered capture groups. An unauthenticated remote attacker can exploit this weakness by transmitting crafted HTTP requests to trigger remote code execution or defeat ASLR.

Alon Barad
Alon Barad
7 views•7 min read