Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain local shell access
-
DeliveryPlant symlink inside workspace root
-
ExploitTrigger user-initiated workspace file operation
-
ExecutionRace to rebind symlink to out-of-sandbox path
-
PersistRealpath sandbox check passes on original target
-
Impactfs.rm or fs.mkdir executes against rebound external path
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
|
| Exploitation Conditions | Exploitation requires: (1) a local user account on the host running OpenClaw (AV:L, PR:L - local shell or equivalent access with ability to create and rebind symlinks); (2) the ability to trigger a user-initiated workspace file operation (UI:P - apply_patch, remove, or mkdir must be invoked); (3) winning a race condition to rebind a symlink between the assertSandboxPath realpath call and the subsequent fs.rm or fs.mkdir call (AC:H). The vulnerable code path is limited to the workspaceOnly branch of apply_patch, remove, and mkdir - broader file editing paths are out of scope per maintainer triage. Exploitation is not possible on Windows. Non-default conditions that limit exploitation: attacker must have concurrent local filesystem access, must be able to create symlinks in a location OpenClaw will traverse, and must time the rebind within the OS scheduling window between two Node.js async operations. |
| Impact | The official CVSS 4.0 score of 4.3 (Medium) reflects AV:L (local access required), AC:H (race condition with narrow timing window), PR:L (low-privilege account needed), and UI:P (user interaction required to trigger a workspace operation). These vectors align well with the actual attack mechanics. EPSS at 0.01% (1st percentile) and SSVC exploitation status of none confirm no observed exploitation. The VI:H rating is accurate - a successful race results in arbitrary file deletion or creation outside the sandbox - but AC:H materially limits exploitability in practice. The maintainer's own triage labels the scope 'narrow,' noting that the draft advisory overstated impact by bundling broader edit paths; only workspace-only apply_patch, remove, and mkdir are affected. There is no CISA KEV listing and no POC has been published, consistent with all risk signals pointing to low operational priority. The primary concern is for multi-tenant environments where untrusted local users share a host running OpenClaw. |
| Exploit ScenarioDerived | An attacker with a low-privilege local account creates a symlink inside the OpenClaw workspace root pointing to an internal directory (e.g., slot -> /workspace/inside). When the user triggers an apply_patch operation that deletes or creates a file under that symlink, the attacker races to rebind the symlink to a target outside the workspace (e.g., slot -> /tmp/outside) before fs.rm or fs.mkdir executes. If the race is won, the sandbox check has already passed against the original target, and the subsequent filesystem call deletes or creates files in the out-of-sandbox location. No public POC has been identified, and the narrow timing window (AC:H) makes reliable exploitation difficult without precise synchronization primitives. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 24, 2026
Sandbox file-operation escape in OpenClaw npm versions <= 2026.3.28 allows a local low-privileged attacker to delete or create files outside the designated workspace root by winning a symlink-rebind race between path validation and filesystem execution in apply_patch, remove, and mkdir operations. The GHSA maintainer triage confirms the scope is narrow - limited to workspace-only mutation operations - and the fix in 2026.3.31 replaces check-then-act enforcement with atomic fd-safe path-within-root helpers. No public exploit exists and SSVC confirms exploitation status as none, placing real-world priority low despite the high integrity impact rating.
RemediationAI
Upgrade the OpenClaw npm package to version 2026.3.31 or later, which is the vendor-released patch containing fix commit 32a4a47d602e0618f87b3e59f94d8c142767f860. The full advisory is at https://github.com/openclaw/openclaw/security/advisories/GHSA-rm5c-4rmf-vvhw. If immediate upgrade is not feasible, restrict local user accounts on the host to trusted principals only, eliminating the attacker's ability to rebind symlinks concurrently with OpenClaw workspace operations; this reduces attack surface but does not eliminate the vulnerability. An additional compensating control is to avoid running OpenClaw in environments where untrusted local users share the same filesystem namespace. Windows deployments require no action as symlink rebinding of this type is not applicable on that platform.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
OpenClaw is a Node.js/npm-based AI coding agent whose sandbox enforces a workspace root boundary to prevent file operations from escaping the designated directory. The vulnerable code path in apply-patch.ts called assertSandboxPath to resolve and validate a file path via realpath, then separately invoked fs.rm or fs.mkdir. This non-atomic check-then-act pattern is precisely described by CWE-367 (Time-of-check Time-of-use Race Condition): an attacker who can rebind a symlink between the realpath call and the filesystem operation causes the operation to execute against the post-rebind, out-of-sandbox target. The fix introduces removePathWithinRoot and mkdirPathWithinRoot (from infra/fs-safe.js) which resolve and operate on the path atomically within the root, eliminating the exploitable window. CPE cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:*:*:* covers all versions prior to 2026.3.31. The vulnerability only manifests on POSIX systems - the test harness explicitly skips Windows (process.platform !== 'win32').
Know when Openclaw gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N
Local race-condition exploitation via symlink rebind, low-privilege account and user interaction required; S:C captures sandbox escape to out-of-root filesystem paths.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
3DescriptionCVE.org
OpenClaw before 2026.3.31 contains a time-of-check-time-of-use vulnerability in sandbox file operations that allows attackers to bypass fd-based defenses. Attackers can exploit check-then-act patterns in apply_patch, remove, and mkdir operations to manipulate files between validation and execution.
Blast Radius
ecosystem impact- 1 npm packages depend on openclaw (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 2026.3.31.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Auth bypass in OpenClaw voice-call extension before 2026.2.1. EPSS 0.68%. PoC and patch available.
Privilege escalation in OpenClaw (pre-2026.3.28) allows unauthenticated remote attackers to gain administrative access b
OpenClaw versions 2026.2.22 through 2026.2.24 contain a privilege escalation vulnerability that allows authenticated att
An authorization mismatch vulnerability in OpenClaw versions prior to 2026.3.1 allows authenticated users with operator.
OpenClaw versions prior to 2026.1.29 automatically establish WebSocket connections to attacker-controlled gateway URLs e
Path traversal in OpenClaw through version 2026.3.23 enables unauthenticated remote attackers to read arbitrary files in
Authentication bypass in OpenClaw before 2026.5.3 allows remote attackers with low privileges to receive agent responses
Directory-context bypass in OpenClaw before 2026.8.1 allows authenticated attackers with user interaction to reuse an 'a
Unauthenticated access to the noVNC observer interface in OpenClaw's Docker sandbox browser allows anyone who can reach
Authentication bypass in OpenClaw's MCP loopback interface allows local low-privilege attackers to escalate to owner-lev
OpenClaw versions before 2026.2.26 allow authenticated attackers to write arbitrary files outside the workspace director
OpenClaw versions prior to 2026.2.22 contain a shell environment variable injection vulnerability in the system.run func
EUVD-2026-25322
GHSA-9hhx-mwf2-vr7v
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB