Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain local access to OpenClaw system
-
ExploitApprove malicious script through OpenClaw approval process
-
ExecutionModify approved script before execution
-
ImpactExecute rewritten code as OpenClaw runtime user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2021 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
|
| Exploitation Conditions | Requires local access to OpenClaw before version 2026.3.11 with low-privilege user account. Attacker must modify approved local scripts between approval and execution when exact file binding cannot occur. Victim interaction needed to approve and execute the script. |
| Impact | Real-world risk assessment reveals moderate-to-high concern despite the 7.0 CVSS score. The CVSS 4.0 vector shows low attack complexity (AC:L) and low privileges required (PR:L), making exploitation straightforward for any local authenticated user, though user interaction (UI:P) provides partial friction. The vulnerability enables complete confidentiality, integrity, and availability compromise of the vulnerable component (VC:H/VI:H/VA:H) with no subsequent system impact (SC:N/SI:N/SA:N), indicating the blast radius remains contained to the OpenClaw runtime context. The local attack vector (AV:L) significantly limits exposure compared to network-accessible vulnerabilities, requiring prior system access. Without EPSS data or confirmed exploitation (no KEV listing), determining active targeting probability proves difficult. However, the RCE classification combined with trivial exploitation complexity elevates priority for environments where OpenClaw processes untrusted scripts or operates with elevated privileges. Organizations should prioritize patching based on whether OpenClaw handles sensitive operations or runs in multi-user environments where local attackers could exploit the TOCTOU window. The requirement for user interaction and local access substantially reduces urgency compared to unauthenticated remote vulnerabilities with similar CVSS scores. |
| Exploit ScenarioDerived | An authenticated attacker with low-level local access identifies an OpenClaw deployment processing approved scripts in a shared environment. The attacker crafts a malicious script and waits for a legitimate user to request approval for a benign script through the OpenClaw workflow. During the time window between when the administrator approves the legitimate script and when the runtime executes it, the attacker exploits the race condition by rapidly replacing the approved script file with their malicious payload. When execution occurs, OpenClaw runs the attacker's code with runtime user privileges, potentially enabling data exfiltration, lateral movement, or persistence establishment depending on the runtime's permission context. The attack requires precise timing but benefits from low complexity (AC:L) and succeeds whenever the approval-to-execution delay creates sufficient opportunity for file substitution. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 29, 2026
Time-of-check-time-of-use (TOCTOU) race condition in OpenClaw runtime (<2026.3.11) allows local authenticated attackers with low privileges to execute arbitrary code by modifying approved scripts between authorization and execution phases. The vulnerability (CWE-367) enables privilege escalation to the OpenClaw runtime user context, requiring user interaction but trivial attack complexity. No public exploit identified at time of analysis, though EPSS data unavailable and CVE not present in CISA KEV catalog.
RemediationAI
Upgrade immediately to OpenClaw version 2026.3.11 or later, which implements atomic file binding and integrity verification between approval and execution phases to prevent TOCTOU exploitation. Download the patched release from the official OpenClaw repository and follow standard upgrade procedures for your deployment. Review the GitHub security advisory at https://github.com/openclaw/openclaw/security/advisories/GHSA-xf99-j42q-5w5p for version-specific guidance and migration notes. If immediate patching proves infeasible, implement compensating controls including restricting write access to script directories after approval, deploying file integrity monitoring to detect unauthorized modifications, running OpenClaw with minimal privileges in isolated environments, and auditing all script execution events. However, these workarounds provide incomplete protection against determined local attackers and should be considered temporary measures only until patching completes.
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 implements a script approval mechanism intended to verify code before execution, but suffers from a classic time-of-check-time-of-use (TOCTOU) race condition (CWE-367). The vulnerability arises when the runtime cannot establish exact file binding between the approval phase and execution phase. During this window, an attacker can swap or modify the approved script file, causing the runtime to execute altered code while believing it operates on previously-vetted content. This represents a failure in atomic operations and inadequate file integrity verification across the approval-to-execution pipeline. The CVSS 4.0 vector indicates local attack surface (AV:L) with user interaction required (UI:P), suggesting the victim must trigger script execution after the attacker modifies the file. The CPE identifier (cpe:2.3:a:openclaw:openclaw) confirms this affects the core OpenClaw application runtime environment.
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:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
2DescriptionCVE.org
OpenClaw before 2026.3.11 contains an approval integrity vulnerability allowing attackers to execute rewritten local code by modifying scripts between approval and execution when exact file binding cannot occur. Remote attackers can change approved local scripts before execution to achieve unintended code execution as the OpenClaw runtime user.
Blast Radius
ecosystem impact- 3 npm packages depend on openclaw (3 direct, 0 indirect)
Ecosystem-wide dependent count for version 2026.3.11.
Executive ViewAI
OpenClaw runtime versions prior to 2026.3.11 contain a race condition vulnerability that allows authenticated users to escalate privileges and execute arbitrary code by manipulating scripts during the authorization window. Organizations running OpenClaw should immediately assess deployment scope and plan for urgent patching, as this vulnerability enables unauthorized code execution within the runtime environment despite current lack of public exploits.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict OpenClaw runtime to highly privileged users only; (2) implement immutable file storage for approved scripts using OS-level controls or containerization; (3) enable comprehensive audit logging of script modifications and execution; (4) isolate OpenClaw runtime processes in restricted environments with minimal privilege elevation paths; (5) enforce code signing for all scripts and validate signatures before execution.
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
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Related Vulnerabilities in OpenClaw Authentication and Token Bypass
View all 4Auth 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
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
OpenClaw versions prior to 2026.2.22 contain a resource exhaustion vulnerability where the application fails to consiste
EUVD-2026-17018
GHSA-wmgj-hrx3-23gj
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB