Skip to main content

OpenClaw CVE-2026-41338

| EUVDEUVD-2026-25322 MEDIUM
Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367)
2026-04-23 VulnCheck GHSA-9hhx-mwf2-vr7v
4.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain local shell access
  2. Delivery
    Plant symlink inside workspace root
  3. Exploit
    Trigger user-initiated workspace file operation
  4. Execution
    Race to rebind symlink to out-of-sandbox path
  5. Persist
    Realpath sandbox check passes on original target
  6. Impact
    fs.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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

OpenClaw 0 <2026.3.31

Affected Packages

npm openclaw fix: 2026.3.31

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

Vendor (VulnCheck) PRIMARY 4.3 MEDIUM
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
vuln.today AI 6.1 MEDIUM

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.

3.1 AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:L
4.0 AV:L/AC:H/AT:N/PR:L/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
High
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
CVSS changed
Apr 23, 2026 - 22:28 NVD
5.0 (MEDIUM) 4.3 (MEDIUM)
Patch released
Apr 23, 2026 - 22:15 nvd
Patch available
CVE Published
Apr 23, 2026 - 21:57 nvd
MEDIUM 4.3

DescriptionCVE.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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 1 npm packages depend on openclaw (1 direct, 0 indirect)

Ecosystem-wide dependent count for version 2026.3.31.

Threat Intelligence Overview

EPSS Score
0.0%
Top 99% exploitable
Prevalence
Low
niche npm AI coding agent, limited known enterprise footprint
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

22
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +22
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2026-28446 CRITICAL POC
9.4 Mar 05

Auth bypass in OpenClaw voice-call extension before 2026.2.1. EPSS 0.68%. PoC and patch available.

CVE-2026-33579 CRITICAL POC
9.4 Mar 31

Privilege escalation in OpenClaw (pre-2026.3.28) allows unauthenticated remote attackers to gain administrative access b

CVE-2026-32042 HIGH POC
8.8 Mar 21

OpenClaw versions 2026.2.22 through 2026.2.24 contain a privilege escalation vulnerability that allows authenticated att

CVE-2026-32051 HIGH POC
8.8 Mar 21

An authorization mismatch vulnerability in OpenClaw versions prior to 2026.3.1 allows authenticated users with operator.

CVE-2026-25253 HIGH POC
8.8 Feb 01

OpenClaw versions prior to 2026.1.29 automatically establish WebSocket connections to attacker-controlled gateway URLs e

CVE-2026-32846 HIGH POC
8.7 Mar 26

Path traversal in OpenClaw through version 2026.3.23 enables unauthenticated remote attackers to read arbitrary files in

CVE-2026-53857 HIGH POC
8.6 Jun 16

Authentication bypass in OpenClaw before 2026.5.3 allows remote attackers with low privileges to receive agent responses

CVE-2026-100530 HIGH POC
8.5 Sep 26

Directory-context bypass in OpenClaw before 2026.8.1 allows authenticated attackers with user interaction to reuse an 'a

CVE-2026-32064 HIGH POC
8.5 Mar 21

Unauthenticated access to the noVNC observer interface in OpenClaw's Docker sandbox browser allows anyone who can reach

CVE-2026-44118 HIGH POC
8.5 May 06

Authentication bypass in OpenClaw's MCP loopback interface allows local low-privilege attackers to escalate to owner-lev

CVE-2026-32055 HIGH POC
7.6 Mar 21

OpenClaw versions before 2026.2.26 allow authenticated attackers to write arbitrary files outside the workspace director

CVE-2026-32056 HIGH POC
7.5 Mar 21

OpenClaw versions prior to 2026.2.22 contain a shell environment variable injection vulnerability in the system.run func

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy