Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttain mirror mode access to target sandbox
-
DeliveryPlant malicious handler.js in sandbox hooks/ subdirectory
-
ExploitMirror sync copies sandbox hooks/ contents to host workspace
-
ExecutionAwait or trigger gateway restart
-
PersistOpenClaw executes mirrored hook as trusted code
-
ImpactArbitrary code runs on host with gateway-process privileges
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Trusted source inclusion only
|
| Exploitation Conditions | Exploitation requires all four of the following conditions to be simultaneously true: (1) the OpenShell mirror mode feature must be active and connected to an attacker-controlled or compromised remote sandbox; (2) the workspace hooks feature must be enabled in the OpenClaw configuration; (3) the user must have explicitly opted in to workspace hooks - this is not a default-on setting; and (4) a gateway restart must occur after the malicious sync, since hook execution happens only at startup, not immediately upon sync. The maintainer's GHSA triage explicitly enumerates these four preconditions and describes the attack surface as 'narrow.' Exploitation is not automatable (SSVC: Automatable: no) because the restart dependency introduces a timing gap the attacker cannot force remotely. Privilege level is limited: the attacker needs existing mirror mode access (PR:L per CVSS 4.0), not unauthenticated network access. Deployments that do not use both mirror mode and workspace hooks simultaneously are not exploitable. |
| Impact | The CVSS 4.0 score of 5.4 (Medium) reflects a well-calibrated assessment of a real but narrow vulnerability. The vector AV:L/AC:L/AT:P/PR:L/UI:P confirms a local attack vector requiring specific attack conditions (AT:P) and passive user interaction in the form of a gateway restart (UI:P). Despite VC:H/VI:H/VA:H indicating total impact on the vulnerable system if exploited, the SSVC automatable rating of 'no' and EPSS at 0.01% (2nd percentile) both confirm very low exploitation probability in practice. The maintainer's own triage in the GHSA advisory explicitly labels the scope as 'narrow' and severity as 'medium,' citing the four mandatory preconditions: mirror mode active, hooks feature enabled, explicit hook opt-in, and a gateway restart. SSVC technical impact of 'total' reflects worst-case consequence, not likelihood. There is no conflict between signals here - all sources agree this is a real but constrained risk. Organizations with mirror mode and hooks co-enabled in production should prioritize upgrading, but this is not a broad emergency for general deployments. |
| Exploit ScenarioDerived | An attacker with access to a remote sandbox connected via OpenShell mirror mode creates a malicious JavaScript file in the sandbox's hooks/evil/ directory containing arbitrary host-side code. The next mirror sync propagates this file into the trusted host workspace hooks/ directory, and upon the next gateway restart, OpenClaw executes the hook as trusted workspace code with gateway-process privileges on the host. The GHSA advisory includes a test case demonstrating this exact path; no separately circulating public exploit code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 24, 2026
Arbitrary code execution in OpenClaw's OpenShell mirror mode (npm package versions <= 2026.3.24) allows attackers with mirror mode access to plant malicious JavaScript in the sandbox hooks/ directory, which is synced to the host workspace and executed during gateway startup. The GHSA advisory confirms this flaw shipped in production releases and rates it medium severity due to a narrow exploitation chain requiring four concurrent conditions. EPSS is 0.01% (2nd percentile) and SSVC indicates no active exploitation; no CISA KEV listing exists at time of analysis, though technical impact is rated total if successfully exploited. Vendor-released patch is available in v2026.3.28.
RemediationAI
Upgrade the openclaw npm package to version 2026.3.28 or later (2026.3.31 confirmed as the latest stable version at time of GHSA publication). The fix is documented in the GHSA advisory at https://github.com/openclaw/openclaw/security/advisories/GHSA-42mx-vp8m-j7qh and implemented via commit c02ee8a3a4cb390b23afdf21317aa8b2096854d1. For environments unable to upgrade immediately, either of two targeted workarounds breaks the required attack chain: disabling mirror mode entirely prevents the sync vector but removes the mirror functionality for all users; alternatively, disabling workspace hooks prevents execution of any synced malicious content but may break legitimate hook-based workspace automation. Disabling hooks is the lower-impact workaround if mirror mode is operationally required. Both workarounds should be treated as temporary - upgrade to 2026.3.28+ is the definitive fix.
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
CWE-829 (Inclusion of Functionality from Untrusted Control Sphere) describes the root cause: the replaceDirectoryContents() function in mirror.ts synchronized all files from a remote sandbox to the local workspace without excluding the trusted hooks/ directory. OpenClaw's workspace hooks are explicitly-enabled JavaScript modules executed on the host with gateway-process privileges during startup - a privileged execution context entirely separate from the sandboxed environment. The mirror mode feature is designed to sync sandbox content to the host, but the absence of an exclusion for hooks/ meant attacker-controlled sandbox files could silently overwrite or populate the trusted hook directory. The fix (commit c02ee8a3a4cb390b23afdf21317aa8b2096854d1) adds an excludeDirs parameter with case-insensitive matching to block any sandbox content from being written into hooks/ on the host, preventing the trust boundary violation. CPE cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:*:*:* identifies this as the openclaw npm package.
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:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Local vector for sandbox file access; AC:H for four mandatory preconditions; PR:L for required mirror mode access; UI:R for gateway restart dependency; S:C for sandbox-to-host scope change.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
4DescriptionCVE.org
OpenShell before 2026.3.28 contains an arbitrary code execution vulnerability in mirror mode that converts untrusted sandbox files into workspace hooks. Attackers with mirror mode access can execute arbitrary code on the host during gateway startup by exploiting enabled workspace hooks.
Blast Radius
ecosystem impact- 3 npm packages depend on openclaw (3 direct, 0 indirect)
Ecosystem-wide dependent count for version 2026.3.28.
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.
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-25339
GHSA-m563-373q-885c
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB