Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconLocal shell access obtained
-
DeliveryInvoke OpenClaw confined shell with --init-file flag
-
ExploitSpecify attacker-controlled initialization file path
-
InstallShell sources initialization file with inherited allowlist trust
-
C2Arbitrary code executes within confinement boundary
-
ExecuteAccess or modify confined resources
-
ImpactData exfiltration or further privilege escalation
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: (1) local shell access to a system running OpenClaw (AV:L), (2) valid authentication credentials or existing local user account (PR:L), (3) ability to invoke OpenClaw or a confined shell process with explicit command-line flags (--rcfile, --init-file, --startup-file), and (4) user interaction or timing coordination such that the shell processes the specified initialization file (UI:P, AT:P). The vulnerability does NOT affect remote attackers or unauthenticated access. Exploitation is further constrained by high attack complexity (AC:H), meaning the attack path requires specific, non-obvious steps or careful timing. Conversely, once these conditions are met, the allowlist bypass is reliable and grants full high-impact access to confined resources without additional privilege escalation. |
| Impact | Real-world risk is moderate despite CVSS 5.4 score. The CVSS vector (AV:L/AC:H/AT:P/PR:L/UI:P) indicates local access only, high attack complexity, passive timing requirements, low privilege level, and user interaction-all factors that significantly constrain opportunistic exploitation. However, the allowlist bypass targets a core security boundary designed to prevent privilege escalation and resource access violations, making this a structural weakness that, once exploited by an insider or local attacker, grants high confidentiality, integrity, and availability impact to confined resources (VC:H/VI:H/VA:H). The attack chain requires an authenticated user to invoke a shell with specific options and user interaction, limiting attack surface to insider threats or scenarios where an attacker has local shell access. No EPSS score provided, but vendor-confirmed patch availability and GitHub advisory suggest this is a known, reproducible issue rather than theoretical. SSVC decision framework would classify this as 'develop' priority for environments running OpenClaw as a confinement system (e.g., sandboxed execution), lower for general-purpose deployments. |
| Exploit ScenarioDerived | A local authenticated user with OpenClaw access invokes a confined shell process, specifying --init-file /tmp/attacker-payload.sh on the command line (or within a script passed to OpenClaw). The shell's initialization file loading mechanism, which normally inherits allowlist trust from the shell binary itself, loads the attacker-controlled file and executes arbitrary code within the confinement boundary. Because the allowlist does not validate individual initialization files, only the shell binary path, the attacker's code executes with the trust level of the confined environment, granting access to resources the legitimate OpenClaw policy would otherwise deny. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 28, 2026
OpenClaw before version 2026.3.31 allows local authenticated users with user interaction to bypass exec allowlist restrictions via shell initialization file options (--rcfile, --init-file, --startup-file), enabling them to load attacker-controlled initialization files and achieve high-impact unauthorized access to confined resources. Exploitation requires local access, low privileges, user interaction, and specific timing conditions, but bypasses a critical security control intended to restrict executable trust.
RemediationAI
Upgrade OpenClaw to version 2026.3.31 or later, which patches the allowlist bypass by properly validating and filtering shell initialization file options before exec invocation. The upstream fix is available in commit 0c8375424620e12777ef24c162eedc7e9fcfd7e3 (https://github.com/openclaw/openclaw/commit/0c8375424620e12777ef24c162eedc7e9fcfd7e3). If immediate upgrade is not possible, implement compensating controls: restrict shell invocation within OpenClaw confinement boundaries to setups that do not expose shell options (e.g., use shell in non-interactive mode or via wrapper scripts that strip user-supplied flags), or disable shell-based initialization file loading entirely if not required for legitimate workflows. Be aware that disabling shell initialization may break legitimate scripts that depend on these features, requiring workflow testing before deployment.
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 implements an allowlist-based execution control mechanism to restrict which binaries and resources can be executed within its confined environment. The vulnerability exploits CWE-184 (Incomplete List of Disallowed Inputs), a logic bypass where shell invocation options commonly used for initialization file loading are not properly filtered or validated by the allowlist matching logic. Attackers can chain shell options like --rcfile (bash), --init-file (bash), or --startup-file (zsh) to specify alternate initialization files, which are then sourced with the trust level inherited from the allowlisted shell binary itself, circumventing per-file allowlist checks. The CPE cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:*:*:* indicates all versions before 2026.3.31 are affected.
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:H/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.3.31 contains an exec allowlist bypass vulnerability allowing attackers to inherit allowlist trust via shell init-file wrapper invocations. Attackers can exploit shell options like --rcfile, --init-file, and --startup-file to load attacker-chosen initialization files while bypassing exec allowlist matching restrictions.
Blast Radius
ecosystem impact- 1 npm packages depend on openclaw (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 2026.3.31.
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-26100
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB