Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to OpenClaw with low privileges
-
DeliverySubmit allowlisted command to shell wrapper
-
ExploitMutate argv source after approval
-
ExecutionWrapper executes unapproved command shape
-
PersistBypass allowlist and run arbitrary command
-
ImpactCompromise confidentiality integrity availability
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
|
| Exploitation Conditions | Exploitation requires authenticated access to OpenClaw's shell wrapper command-submission interface (PR:L) and the ability to influence argv between the allowlist approval step and the execution step - the prerequisite is therefore a deployment that exposes the wrapper to users who can supply commands and a target where the argv source is mutable across the approval/execution boundary. Limiting factors are the low-but-nonzero privilege requirement, the need to win a TOCTOU race against the approval gate, and the fact that environments which front the wrapper with an external strict allowlist or which run only static, pre-built command lines are not exploitable; no user interaction is required (UI:N). |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) with VC:H/VI:H/VA:H and a base score of 8.7 indicates a network-reachable, low-complexity flaw requiring only low privileges and yielding full confidentiality, integrity, and availability impact on the vulnerable system - a credible high-priority issue for any deployment exposing the wrapper to authenticated users. There is no EPSS score, no KEV listing, and no POC referenced, so real-world exploitation pressure is currently unmeasured; the VulnCheck advisory and GHSA publication suggest coordinated disclosure rather than observed in-the-wild activity. The PR:L requirement and the need to win a race between approval and execution meaningfully constrain opportunistic mass exploitation, but the allowlist-bypass nature makes this a sharp tool for an attacker who already has a foothold within a multi-tenant or delegated-execution OpenClaw deployment. |
| Exploit ScenarioDerived | An attacker with low-privileged authenticated access submits a command through OpenClaw's shell wrapper that presents an allowlisted argv at approval time, then mutates the underlying argument source so that execution receives a different, unapproved command shape - for example swapping a benign flag for a shell-redirect or invoking an off-allowlist binary. No public exploit code has been identified, but the race window is intrinsic to the wrapper's design and reproducible once the approval/execution split is understood. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 12, 2026
Command injection in OpenClaw before 2026.5.18 allows authenticated attackers to modify shell wrapper argv between approval and execution, bypassing the allowlist enforcement. The TOCTOU-style race against the approval gate lets attackers execute unapproved command shapes with the application's privileges, with no public exploit identified at time of analysis but a vendor advisory published via GHSA.
RemediationAI
Vendor-released patch: upgrade OpenClaw to 2026.5.18 or later per the GHSA-2j8v-hwgc-x698 advisory (https://github.com/openclaw/openclaw/security/advisories/GHSA-2j8v-hwgc-x698). If immediate upgrade is not possible, restrict access to the shell wrapper endpoint so that only fully trusted operators can submit commands (this removes most of the delegated-execution value the wrapper provides), disable any feature that allows untrusted callers to influence argv after the allowlist check, and audit recently executed commands for argv shapes that do not match approved patterns. Monitor the VulnCheck advisory (https://www.vulncheck.com/advisories/openclaw-command-argument-modification-via-shell-wrapper-between-approval-and-execution) for further mitigation guidance.
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
OpenClaw uses a shell wrapper that validates command arguments against an allowlist before execution. The flaw is a classic CWE-367 Time-of-Check Time-of-Use (TOCTOU) race condition: argv is inspected at approval time, then the wrapper hands off to execution where the argument vector can be rebuilt or substituted. Because the validation and execution operate on separate views of the argument state, an attacker who controls inputs to the wrapper can present a benign command shape during the allowlist check and a different shape at execution, defeating the security boundary intended by the wrapper.
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
Network-reachable wrapper with authenticated low-priv access (PR:L); winning the approval/execution race raises AC:H; successful bypass yields full CIA impact within the vulnerable system.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
OpenClaw before 2026.5.18 contains a command injection vulnerability where shell wrapper argv could change between approval and execution. Attackers can rebuild command arguments after allowlist approval to execute unapproved command shapes, potentially bypassing security controls.
Executive ViewAI
OpenClaw versions before 2026.5.18 contain a vulnerability in the command execution approval workflow that allows authenticated users to modify approved commands between approval and execution, thereby circumventing security controls meant to govern privileged command execution. With no public exploit identified at time of analysis, the primary risk is from insider or privileged account misuse. Organizations using affected versions should immediately identify deployments and restrict access pending remediation.
Restrict access to OpenClaw approval system and administrative functions to minimum necessary personnel; implement comprehensive audit logging and alerting on command modifications between approval and execution; isolate or segment critical OpenClaw deployments from sensitive systems; require independent verification of critical command executions; periodically review execution logs for unauthorized modifications.
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
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
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-36610
GHSA-8v2r-mv47-wxfr
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB