Skip to main content

OpenClaw CVE-2026-41355

| EUVDEUVD-2026-25339 MEDIUM
Inclusion of Functionality from Untrusted Control Sphere (CWE-829)
2026-04-23 VulnCheck GHSA-m563-373q-885c
5.4
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Attain mirror mode access to target sandbox
  2. Delivery
    Plant malicious handler.js in sandbox hooks/ subdirectory
  3. Exploit
    Mirror sync copies sandbox hooks/ contents to host workspace
  4. Execution
    Await or trigger gateway restart
  5. Persist
    OpenClaw executes mirrored hook as trusted code
  6. Impact
    Arbitrary 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.

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

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

OpenClaw 0 <2026.3.28

Affected Packages

npm openclaw fix: 2026.3.28

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

Vendor (VulnCheck) PRIMARY 5.4 MEDIUM
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
vuln.today AI 7.5 HIGH

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.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

Lifecycle Timeline

4
Severity Changed
Apr 23, 2026 - 22:28 NVD
HIGH MEDIUM
CVSS changed
Apr 23, 2026 - 22:28 NVD
7.3 (HIGH) 5.4 (MEDIUM)
Patch released
Apr 23, 2026 - 22:15 nvd
Patch available
CVE Published
Apr 23, 2026 - 21:58 nvd
MEDIUM 5.4

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

Ecosystem-wide dependent count for version 2026.3.28.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Prevalence
Low
niche npm developer tooling, limited 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
Total

Priority Score

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

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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