Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconLocal actor gains workspace write access
-
DeliveryCreate benign script in workspace
-
ExploitTrigger preflight validation
-
InstallPerform symlink/file swap during check-read gap
-
C2Preflight inspects swapped outside file
-
ExecuteLeak metadata through preflight error or output
-
ImpactInfer sensitive information about outside file
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
|
| Exploitation Conditions | Exploitation requires all of the following: (1) The attacker must have write access to the target workspace directory on the same system where OpenClaw runs (local access). (2) The validateScriptFileForShellBleed function must be invoked during script execution with a script path under the workspace. (3) The attacker must successfully race-condition the file replacement between the validation stat() call and the file read operation-a narrow, timing-dependent window. (4) The attacker must have or control a target file outside the workspace to swap in (e.g., a file containing sensitive metadata or token patterns). (5) The attacker must be able to repeatedly attempt the race if the first attempt fails. These conditions significantly limit exploitation to collaborative or compromised workspace accounts; remote attackers without local system access cannot exploit this vulnerability. The vulnerability does NOT require special configuration or feature enablement-it affects default preflight validation behavior for any script execution. |
| Impact | CVSS 2.5 (AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N) indicates low severity due to local-only attack vector, high attack complexity (race condition timing), low privilege requirement, and confidentiality impact limited to non-sensitive file metadata. The attack complexity is unusually high for a TOCTOU: the attacker must precisely time file replacement within a narrow window between validation and read, and both the initial and swapped files must be accessible. The confidentiality impact is further constrained by the GHSA advisory, which explicitly states that the preflight validator only surfaces derived content (matched tokens, line numbers, first non-empty lines) rather than arbitrary full-file disclosure. The scenario requires the attacker to already possess write access to the workspace path, reducing the pool of viable threat actors to workspace collaborators or compromised workspace accounts. No exploitation probability score (EPSS) provided; however, the required race condition precision and limited impact (metadata leakage only, no code execution or integrity compromise) suggest low real-world exploitation likelihood. The patch is released and available, reducing ongoing risk for updated deployments. |
| Exploit ScenarioDerived | An attacker with write access to an OpenClaw workspace creates a benign script file that passes preflight validation (e.g., a legitimate Node.js script). Immediately after the preflight validator checks the script's workspace boundaries via stat(), the attacker replaces the script file with a symlink pointing to a file outside the workspace containing sensitive information (e.g., a file with shell variable patterns or tokens). The preflight validator reads the swapped file and surfaces metadata such as matched tokens or line numbers, leaking information about the outside file that should have been rejected by boundary checks. The race requires precise timing but is feasible in environments with high concurrency or on systems where the attacker can observe or trigger the validation process. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 05, 2026
OpenClaw before 2026.4.10 allows local attackers with workspace write access to bypass boundary checks via a time-of-check-time-of-use race condition in the validateScriptFileForShellBleed function. An attacker can swap the target script file between validation and preflight read, causing the validator to inspect a different file than the one that passed the initial workspace boundary check, potentially leaking preflight metadata such as matched tokens or line numbers. No public exploit code identified at time of analysis; patch available in version 2026.4.10.
RemediationAI
Upgrade to OpenClaw 2026.4.10 or newer immediately. The vendor-released patch replaces the check-then-read flow with an atomic operation using file descriptor pinning via the readFileWithinRoot helper, eliminating the TOCTOU window. Users on older versions should prioritize this upgrade since the fix involves core script execution security. No workarounds exist for versions prior to 2026.4.10 without modifying the application code. If upgrading is delayed, restrict workspace write access to trusted users only and monitor for suspicious symlink or file-replacement activity in workspace directories during script execution. See patch commit b024fae9e5df43e9b69b2daebb72be3469d52e91 and PR #62333 at https://github.com/openclaw/openclaw/pull/62333.
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's exec script preflight validator performs separate validation and file-read operations on script files using mutable pathnames. The vulnerable validateScriptFileForShellBleed function first validates that a script resides within the workspace boundary, then reads and analyzes the script content by path. Because the file is accessed by pathname rather than by a pinned file descriptor, an attacker with write permissions to the workspace directory can replace the validated script file with a different file (via symlink or atomic replacement) after the boundary check but before the preflight read. The root cause (CWE-367: Improper Synchronization / Time-of-Check-Time-of-Use Race Condition) stems from the gap between checking file identity via stat() and reading the file via path-based access. The fix atomically pins the file descriptor after boundary verification, using the readFileWithinRoot helper to perform boundary checks on the opened file identity rather than relying on the mutable pathname.
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:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Primary rating from Vendor (VulnCheck) · only source for this CVE.
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
OpenClaw before 2026.4.10 contains a time-of-check-time-of-use vulnerability in the validateScriptFileForShellBleed function that allows local attackers to bypass workspace boundary checks. An attacker with workspace write access can race-condition swap the target file between validation and preflight read, causing the validator to inspect a different file identity than the one that passed the initial boundary check.
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-27269
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB