Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver malicious workspace config
-
DeliveryUser opens workspace in OpenClaw
-
ExploitUser starts MCP session
-
ExecutionSpawn server with injected env vars
-
ImpactExecute attacker code as user
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 | Requires attacker-controlled workspace configuration file containing MCP stdio server definition with malicious env entries (NODE_OPTIONS, LD_PRELOAD, BASH_ENV, or similar process-startup variables). Victim must be a low-privileged authenticated user (PR:L) who opens the malicious workspace in OpenClaw and manually starts a session using the configured MCP server (UI:R user interaction required). Attack is local (AV:L) - attacker must deliver the malicious workspace configuration to the target system, typically via repository clone, file share, or supplied project template. Exploitation limited to environments where users run OpenClaw against untrusted or unreviewed workspace configurations. Does NOT affect: users who only run OpenClaw with internally developed/reviewed configurations, environments where workspace configs are centrally managed and validated, or systems running patched version 2026.4.20+. The vulnerability cannot be exploited remotely without first achieving workspace configuration write access through separate means. |
| Impact | Real-world exploitation risk is moderate despite the 7.3 CVSS score. The CVSS vector (AV:L/AC:L/PR:L/UI:R) reveals critical limiting factors: attack requires local access, low-privilege authenticated user, AND user interaction (operator must actively open the malicious workspace and start an MCP session). This is not a remote wormable vulnerability. No EPSS score provided in input data, but the attack prerequisites suggest low probability of mass exploitation - this requires social engineering or supply chain compromise to deliver malicious workspace configurations to target developers. CISA KEV status not present, and no public exploit code identified beyond the VulnCheck technical advisory, indicating no confirmed active exploitation. The scope is unchanged (S:U), meaning impact is confined to the vulnerable component rather than escalating to system-wide compromise. However, when conditions are met, impact is severe (C:H/I:H/A:H) - full code execution as the OpenClaw process user. Primary risk scenarios are malicious workspace repositories in open-source development, or targeted attacks against specific organizations using workspace configuration as initial access. The vendor's own GHSA advisory rates this 'medium, not high/critical' precisely because of the workspace trust boundary requirement. Defenders should prioritize this for developer workstations and CI/CD environments running OpenClaw against untrusted workspace sources, but it's not an immediate internet-facing emergency. |
| Exploit ScenarioDerived | Attacker creates a malicious Git repository containing legitimate-looking project files plus an OpenClaw workspace configuration (.openclaw/config.json) defining an MCP stdio server with env: {NODE_OPTIONS: '--require=/tmp/backdoor.js'} where backdoor.js contains data exfiltration or remote access code. Target developer clones the repository and opens it in OpenClaw. When the developer initiates a session that triggers the malicious MCP server, OpenClaw spawns the server process with the injected NODE_OPTIONS, causing Node.js to preload and execute the attacker's backdoor.js with the developer's privileges. No public proof-of-concept code confirmed, but attack technique is straightforward given the detailed VulnCheck advisory and GitHub commit diffs showing exact vulnerable code paths. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 11, 2026
Remote code execution in OpenClaw npm package versions before 2026.4.20 allows local authenticated users to inject malicious code through MCP stdio server environment variables. Attackers craft workspace configurations containing dangerous environment variables (NODE_OPTIONS, LD_PRELOAD, BASH_ENV) that execute arbitrary code when operators start sessions using those MCP servers. Vendor-released patch available (version 2026.4.20). No public exploit code or active exploitation confirmed at time of analysis, though VulnCheck published detailed technical advisory. CVSS 7.3 reflects local attack vector requiring user interaction, limiting widespread exploitation risk despite high technical impact.
RemediationAI
Upgrade to OpenClaw version 2026.4.20 or later via npm package manager (npm update openclaw). Vendor-confirmed fix implemented in commits 62fa5071896e95edc7f67d1cebc70a2859e283af and 85d86ebc4bf3d2226d39d132a484f4f7a299fa1b, available at GitHub repository. For organizations unable to immediately upgrade: (1) Restrict OpenClaw usage to trusted workspace configurations only - implement code review for all .openclaw or MCP configuration files before execution, particularly env sections in stdio server definitions; (2) Run OpenClaw processes in sandboxed environments (containers, VMs) with restricted permissions to limit code execution impact - note this reduces lateral movement risk but does not prevent initial compromise within the sandbox; (3) Monitor spawned MCP server processes for suspicious environment variables (NODE_OPTIONS, LD_PRELOAD, BASH_ENV, DYLD_INSERT_LIBRARIES) using process auditing tools - creates detection capability but allows initial execution. All workarounds have operational overhead and do not provide equivalent security to patching. Advisory and patch details: https://github.com/openclaw/openclaw/security/advisories/GHSA-mj59-h3q9-ghfh.
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
The vulnerability exists in OpenClaw's Model Context Protocol (MCP) stdio server configuration handling, specifically in the mcp-config-shared.ts and mcp-stdio.ts modules. MCP servers are child processes spawned by OpenClaw to provide extended capabilities. The affected code failed to validate environment variables passed from workspace configuration files before spawning these child processes. This allows injection of process-startup environment variables that control runtime behavior across multiple interpreters: NODE_OPTIONS (Node.js runtime flags enabling require preloads), LD_PRELOAD (Linux dynamic linker library injection), and BASH_ENV (shell initialization scripts). The root cause is CWE-829 (Inclusion of Functionality from Untrusted Control Sphere) - the application trusted workspace configuration data to define the execution environment of privileged child processes without sanitization. The patch introduces toMcpEnvRecord() function that filters environment entries through isDangerousHostEnvVarName() and isDangerousHostEnvOverrideVarName() denylists before process spawning, while preserving the original toMcpStringRecord() for non-environment use cases like HTTP headers.
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
Primary rating from Vendor (VulnCheck) · only source for this CVE.
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
3DescriptionCVE.org
OpenClaw before 2026.4.20 contains an improper environment variable validation vulnerability in MCP stdio server configuration that allows attackers to execute arbitrary code. Malicious workspace configurations can pass dangerous startup variables like NODE_OPTIONS, LD_PRELOAD, or BASH_ENV to spawned MCP server processes, enabling code injection when operators start sessions using those servers.
Executive ViewAI
OpenClaw npm package versions before 2026.4.20 contain a remote code execution vulnerability that allows authenticated local users to execute arbitrary code by injecting malicious environment variables into workspace configurations. Organizations using OpenClaw in multi-user environments face operational risk if workspace configurations are not properly validated, as operators starting MCP server sessions could unknowingly trigger injected code.
Apply vendor patch to version 2026.4.20 or later. Until patching is complete, restrict workspace configuration access to trusted administrators only, disable dynamic environment variable injection in MCP server startup procedures, and implement mandatory code review for all workspace configuration changes.
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-29140
GHSA-p3m6-jr2h-hhxj
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB