Description
OpenClaw versions prior to 2026.2.23 contain a path traversal vulnerability in the experimental apply_patch tool that allows attackers with sandbox access to modify files outside the workspace directory by exploiting inconsistent enforcement of workspace-only checks on mounted paths. Attackers can use apply_patch operations on writable mounts outside the workspace root to access and modify arbitrary files on the system.
Published: 2026-03-19
Score: 7.6 High
EPSS: < 1% Very Low
KEV: No
Impact: Unauthorized file modification
Action: Patch
AI Analysis

Impact

OpenClaw versions before 2026.2.23 contain a path traversal flaw in the experimental apply_patch tool that allows an attacker with sandbox access to modify files outside the defined workspace directory. The weakness, identified as CWE-22, directly enables arbitrary file write operations on the host filesystem. Based on the description, it is inferred that an attacker could alter critical system files, potentially enabling code execution or further privilege escalation, but the CVE text does not explicitly confirm RCE. The primary impact is therefore the ability to tamper with or compromise system files that are normally protected by the sandbox boundary.

Affected Systems

The affected product is OpenClaw (OpenClaw:OpenClaw). All releases prior to version 2026.2.23 are vulnerable, as the CPE entry cpe:2.3:a:openclaw:openclaw:* indicates no sub‑version filtering. No more specific version information is provided by the vendor.

Risk and Exploitability

The CVSS score of 7.6 marks this flaw as High severity. EPSS data is not available and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires the attacker to possess sandbox or API access and to invoke an apply_patch operation on a writable mount that resides outside the workspace root. Once such prerequisites are met, the attacker can modify arbitrary files on the system, creating a high risk of system compromise.

Generated by OpenCVE AI on March 19, 2026 at 23:52 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade OpenClaw to version 2026.2.23 or later to disable the vulnerable apply_patch path traversal check.
  • Reconfigure the sandbox so that writable mounts are confined strictly within the workspace hierarchy.
  • Restrict sandbox permissions to trusted users and enforce least‑privilege for apply_patch operations.
  • Log and monitor all apply_patch activity, and investigate any unexpected writes outside the workspace.

Generated by OpenCVE AI on March 19, 2026 at 23:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-h9xm-j4qg-fvpg OpenClaw: Experimental apply_patch may bypass workspace-only checks in opt-in sandbox mounts (off by default)
History

Fri, 20 Mar 2026 21:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 19 Mar 2026 22:15:00 +0000

Type Values Removed Values Added
Description OpenClaw versions prior to 2026.2.23 contain a path traversal vulnerability in the experimental apply_patch tool that allows attackers with sandbox access to modify files outside the workspace directory by exploiting inconsistent enforcement of workspace-only checks on mounted paths. Attackers can use apply_patch operations on writable mounts outside the workspace root to access and modify arbitrary files on the system.
Title OpenClaw < 2026.2.23 - Sandbox Bypass in apply_patch Tool via Workspace-Only Check Bypass
First Time appeared Openclaw
Openclaw openclaw
Weaknesses CWE-22
CPEs cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:node.js:*:*
Vendors & Products Openclaw
Openclaw openclaw
References
Metrics cvssV3_1

{'score': 6.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N'}

cvssV4_0

{'score': 7.6, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Openclaw Openclaw
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-03-20T20:13:16.999Z

Reserved: 2026-03-10T19:48:13.664Z

Link: CVE-2026-32007

cve-icon Vulnrichment

Updated: 2026-03-20T20:13:11.990Z

cve-icon NVD

Status : Analyzed

Published: 2026-03-19T22:16:33.370

Modified: 2026-03-24T21:22:35.050

Link: CVE-2026-32007

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-03-20T11:05:36Z

Weaknesses