Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate with low-privilege account
-
DeliverySubmit crafted request with environment variable injection
-
ExploitBypass shell wrapper detection
-
InstallInject SHELLOPTS/PS4 variables
-
C2Trigger subprocess execution
-
ExecuteExecute arbitrary code
-
ImpactAchieve system compromise
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation completeness
|
| Exploitation Conditions | Requires authenticated access with low-privilege credentials (PR:L) to OpenClaw application. Exploitation depends on the application accepting user-controllable input that reaches shell execution or subprocess spawning contexts without proper argv validation. The vulnerability specifically affects code paths where OpenClaw's exec preflight handling processes command-line arguments before shell invocation. Default configurations processing user input through these execution paths are vulnerable. No special network conditions or user interaction required beyond initial authentication. |
| Impact | CVSS 8.7 (High) reflects network-accessible exploitation with low attack complexity, requiring only low-privilege authentication. The vector AV:N/AC:L/PR:L/UI:N with full confidentiality, integrity, and availability impact (VC:H/VI:H/VA:H) indicates authenticated remote attackers can achieve complete system compromise. However, real-world risk depends heavily on deployment context: the PR:L requirement means this isn't mass-exploitable like unauthenticated RCE vulnerabilities. EPSS score not provided, but the authentication prerequisite and lack of CISA KEV listing suggest targeted rather than widespread exploitation. The ability to bypass security controls through shell variable manipulation is particularly concerning for environments where OpenClaw processes untrusted input or operates in multi-tenant contexts. Patch availability in version 2026.4.12 with public GitHub commit makes remediation straightforward, elevating priority for affected systems with authenticated user access. |
| Exploit ScenarioDerived | An authenticated attacker with low-privilege credentials submits a crafted request to OpenClaw containing command-line arguments that inject environment variable assignments such as SHELLOPTS=xtrace or PS4='$(malicious_command)'. The application's insufficient shell wrapper detection fails to recognize these as dangerous inputs, allowing the manipulated variables to alter shell execution semantics. When OpenClaw spawns a subprocess or executes shell commands, the injected PS4 variable triggers arbitrary code execution with the privileges of the OpenClaw process, bypassing intended security controls. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – May 05, 2026
Remote attackers with low-privilege authentication can inject environment variable assignments into OpenClaw 2026.2.22 through 2026.4.11 to bypass shell wrapper detection mechanisms. By manipulating critical shell variables like SHELLOPTS and PS4 at the argv level, attackers achieve high-impact code execution that circumvents security controls. Vendor-released patch available in version 2026.4.12. No active exploitation confirmed (not in CISA KEV), but VulnCheck disclosed this vulnerability with specific technical details and a GitHub commit fix.
Earlier versions of this analysis (1)
Remote authenticated attackers can bypass shell-wrapper detection in OpenClaw npm package versions 2026.2.22 through 2026.4.11, enabling injection of environment variable assignments at the argv level to manipulate high-risk shell variables like SHELLOPTS and PS4. This allows attackers with low-privilege credentials to achieve full system compromise (high confidentiality, integrity, and availability impact) by altering execution semantics and bypassing security controls during command execution. Vendor-released patch confirmed in version 2026.4.12, with fix commit 8f8492d and pull request #65717 available for verification. No public exploit identified at time of analysis, though the specific attack technique (CWE-184: Incomplete List of Disallowed Inputs) is well-documented.
RemediationAI
Upgrade to OpenClaw version 2026.4.12 or later, which contains the fix implemented in commit 8f8492d172f4c5b4fd7dd9a47855ed620c8770ab (https://github.com/openclaw/openclaw/commit/8f8492d172f4c5b4fd7dd9a47855ed620c8770ab). If immediate patching is not feasible, implement strict input validation on all user-controllable data passed to shell execution contexts, specifically blocking argv entries containing '=' characters that could represent environment variable assignments. Alternatively, restrict authenticated user privileges to minimize exposure, though this reduces functionality and does not eliminate the vulnerability. Review audit logs for suspicious SHELLOPTS or PS4 variable usage patterns, particularly trace mode activation or unexpected shell option modifications.
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
This vulnerability exploits insufficient input validation in OpenClaw's shell wrapper detection logic (CWE-184: Incomplete List of Disallowed Inputs). The application fails to properly sanitize command-line arguments (argv) before execution, allowing injection of environment variable assignments. Critical shell variables like SHELLOPTS (controls shell options including debug tracing) and PS4 (defines the prompt for execution trace) can be manipulated to alter execution flow and disable security mechanisms. The CPE identifier (cpe:2.3:a:openclaw:openclaw) indicates this is a core vulnerability in the OpenClaw application framework itself, affecting how it interfaces with shell environments during command execution or subprocess spawning.
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:N/AC:L/AT:N/PR:L/UI:N/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 versions from 2026.2.22 before 2026.4.12 contain an insufficient shell-wrapper detection vulnerability allowing attackers to inject environment variable assignments at the argv level. Attackers can bypass exec preflight handling to manipulate high-risk shell variables like SHELLOPTS and PS4, affecting execution semantics and security controls.
Executive ViewAI
OpenClaw versions 2026.2.22 through 2026.4.11 contain a high-severity authentication bypass vulnerability allowing low-privileged users to execute arbitrary code by manipulating shell environment variables, circumventing existing security controls. Organizations running affected versions face immediate risk of privilege escalation and lateral movement by internal or low-access threat actors. Patching to version 2026.4.12 is critical to restore security posture.
Apply vendor patch to version 2026.4.12. If patching cannot be completed immediately, restrict low-privilege account access to OpenClaw systems, disable or monitor shell variable manipulation at OS/container level, and enforce network segmentation to limit lateral movement potential.
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-27253
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB