Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to OpenClaw API
-
DeliverySubmit operator request with VIMINIT/LUA_INIT in environment
-
ExploitOpenClaw spawns child process inheriting malicious environment
-
ExecutionInterpreter reads startup variable
-
PersistExecute injected commands as OpenClaw process
-
ImpactAchieve code execution or network redirection
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 in CVSS vector) to OpenClaw's operator-facing interfaces that permit environment variable overrides in exec contexts. The vulnerability specifically affects deployments where operators can supply environment variables that are inherited by child processes spawned via OpenClaw's execution policy. Successful exploitation depends on: (1) the application invoking interpreters (Vim, ex, Lua) or hostname resolution mechanisms that honor the vulnerable environment variables, (2) operator-supplied environment variables not being sanitized by OpenClaw's original insufficient denylist, and (3) the spawned processes inheriting the manipulated environment. The network attack vector (AV:N) and low complexity (AC:L) indicate remote exploitation is feasible without specialized conditions beyond authentication. No user interaction required (UI:N). The fix commit shows the vulnerability existed in the HostEnvSanitizer's isBlocked() logic which failed to filter these interpreter-specific variables, meaning default configurations of OpenClaw < 2026.4.10 are vulnerable when operator-supplied environments are processed. |
| Impact | CVSS 8.7 (AV:N/AC:L/PR:L) indicates network-exploitable with low complexity requiring only low-privilege authentication. However, real-world risk depends heavily on OpenClaw's deployment context and whether operators can inject arbitrary environment variables into exec contexts. The attack requires authenticated access (PR:L), limiting exposure compared to unauthenticated vulnerabilities. EPSS data not provided in input, preventing probability quantification. No CISA KEV listing confirms this is not yet observed in widespread exploitation. The vulnerability is particularly dangerous in multi-tenant or operator-accessible environments where users can influence execution context. High technical impact (VC:H/VI:H/VA:H) reflects full confidentiality, integrity, and availability compromise within the vulnerable component's scope. Scope unchanged (SC:N/SI:N/SA:N) means impact is confined to the vulnerable component. Patch availability in 2026.4.10 (released and confirmed via GitHub advisory GHSA-vfp4-8x56-j7c5) significantly reduces risk for organizations with active patch management. Priority should align with whether OpenClaw is exposed to untrusted operators and whether the exec policy is used in security-critical contexts. |
| Exploit ScenarioDerived | An authenticated attacker with low-privilege access to OpenClaw submits a request that triggers execution of a child process (e.g., invoking a Lua script or editor). The attacker crafts environment variables LUA_INIT='os.execute("/bin/sh -c malicious_payload")' or VIMINIT=':!rm -rf /tmp/sensitive_data' which are passed through to the spawned interpreter. When Lua or Vim initializes, these variables execute the injected commands with the privileges of the OpenClaw process, achieving arbitrary code execution or data manipulation. Alternatively, setting HOSTALIASES='/tmp/attacker_hosts' redirects hostname resolution to attacker-controlled mappings, enabling man-in-the-middle attacks on downstream network connections. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 06, 2026
Environment variable injection in OpenClaw before 2026.4.10 allows authenticated remote attackers to hijack interpreter execution behavior through insufficient filtering of high-risk startup variables (VIMINIT, EXINIT, LUA_INIT, HOSTALIASES). The vulnerability enables code execution by manipulating how downstream interpreters (Vim, ex, Lua) initialize and resolve hostnames. Patched in version 2026.4.10 following coordinated disclosure by Tencent zhuque Lab. No public exploit identified at time of analysis, though CVSS 8.7 reflects network-exploitable attack surface with low complexity requiring only low-privilege authentication.
RemediationAI
Upgrade OpenClaw to version 2026.4.10 or later. The fix is included in npm package openclaw@2026.4.14 (latest at time of advisory). The patch (commit 2d126fc62343a7b6895351f96e4e1474bc358140, PR #63277) expands HostEnvSecurityPolicy.blockedInheritedKeys to include VIMINIT, EXINIT, LUA_INIT variants, HOSTALIASES, and over 200 additional high-risk variables covering AWS credentials, compiler flags, and interpreter control paths. Review GitHub advisory at https://github.com/openclaw/openclaw/security/advisories/GHSA-vfp4-8x56-j7c5 and commit diff at https://github.com/openclaw/openclaw/commit/2d126fc62343a7b6895351f96e4e1474bc358140 for full technical details. If upgrade is delayed, implement compensating controls: restrict operator access to OpenClaw execution environments, audit all environment variable sources passed to exec contexts, and deploy runtime monitoring for suspicious interpreter startup variable usage (detect VIMINIT, EXINIT, LUA_INIT in process environments). Note that compensating controls are complex to implement correctly given the breadth of blocked variables in the patch (200+ entries), making upgrade the strongly preferred remediation path.
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 HostEnvSecurityPolicy module (specifically HostEnvSanitizer.swift), which sanitizes environment variables passed to exec() calls in operator-controlled environments. The original denylist failed to block interpreter startup variables that control initialization behavior: VIMINIT and EXINIT (Vim/ex editor commands), LUA_INIT variants (Lua pre-execution code), and HOSTALIASES (DNS hostname aliasing file path). These variables are classified under CWE-184 (Incomplete List of Disallowed Inputs), a filter bypass weakness. When OpenClaw spawns child processes inheriting operator-supplied environment variables, attackers can inject malicious values for these variables to achieve arbitrary code execution in the context of those interpreters or redirect network connections through hostile hostname mappings. The fix (commit 2d126fc) expands the denylist from a small set to over 200 blocked keys including AWS credentials, Git control paths, compiler flags, and interpreter startup vectors. The npm package ecosystem is affected, with the macOS Swift codebase containing the vulnerable logic.
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.10 contains an insufficient environment variable denylist vulnerability in its exec environment policy that allows operator-supplied overrides of high-risk interpreter startup variables including VIMINIT, EXINIT, LUA_INIT, and HOSTALIASES. Attackers can exploit this by manipulating these environment variables to influence downstream execution behavior or network connectivity.
Executive ViewAI
OpenClaw versions before 2026.4.10 contain an environment variable injection flaw that allows authenticated users to execute arbitrary code by manipulating interpreter initialization variables (VIMINIT, EXINIT, LUA_INIT, HOSTALIASES). This could enable lateral movement or privilege escalation for any user with system access, directly compromising application integrity and data confidentiality across dependent systems.
Vendor-released patch: version 2026.4.10. If patching is delayed: (1) Restrict OpenClaw access to trusted users only; (2) Monitor and block modification of VIMINIT, EXINIT, LUA_INIT, and HOSTALIASES environment variables via endpoint controls; (3) Disable or isolate Vim, ex, and Lua interpreter integrations if not operationally critical; (4) Implement application-level input validation to reject suspicious environment variable patterns.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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-28180
GHSA-vfp4-8x56-j7c5
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB