Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Lifecycle Timeline
4DescriptionCVE.org
OpenClaw before 2026.4.20 fails to properly reserve the OPENCLAW_ runtime-control environment namespace in workspace dotenv files, allowing attackers to override critical runtime variables. Malicious workspaces can set variables like OPENCLAW_GIT_DIR to manipulate trusted OpenClaw runtime behavior during source-update or installer flows.
AnalysisAI
Environment variable namespace collision in OpenClaw npm package before version 2026.4.20 enables malicious workspace dotenv files to override critical runtime control variables including OPENCLAW_GIT_DIR, potentially redirecting trusted operations like source updates and installer flows to attacker-controlled paths. Exploitation requires user interaction (opening a malicious workspace) but no authentication, achieving high confidentiality and integrity impact within the local scope. CVSS 8.5 severity reflects the local attack vector with low complexity. No active exploitation confirmed (not in CISA KEV), but public exploit code exists via the GitHub security advisory demonstrating the attack surface. Fixed in version 2026.4.20 per vendor commit 018494fa.
Technical ContextAI
This vulnerability stems from CWE-184 (Incomplete List of Disallowed Inputs) in OpenClaw's dotenv configuration loader. The affected component (src/infra/dotenv.ts) loads environment variables from workspace-local .env files without adequately filtering the OPENCLAW_ namespace reserved for runtime control. The npm package openclaw implements a development environment manager that reads per-workspace configuration from .env files. Prior to the fix, the BLOCKED_WORKSPACE_DOTENV_PREFIXES list was incomplete, failing to reserve the entire OPENCLAW_ namespace. This allowed untrusted workspace .env files to inject variables like OPENCLAW_GIT_DIR, OPENCLAW_WORKSPACE_DIR, OPENCLAW_MDNS_HOSTNAME, and OPENCLAW_SESSION_CACHE_TTL_MS that control trusted operations during initialization, source synchronization, and installation workflows. The patch adds a blanket OPENCLAW_ prefix block to the workspace dotenv parser, implementing a fail-closed security model where new runtime-control variables inherit protection by default rather than requiring explicit enumeration.
RemediationAI
Upgrade the OpenClaw npm package to version 2026.4.20 or later immediately. Run 'npm update openclaw' or 'npm install openclaw@2026.4.20' in affected development environments. The fix is implemented in commit 018494fa3ebb9145112e68b56fe1cb2e9f9a9ed6 available at https://github.com/openclaw/openclaw/commit/018494fa3ebb9145112e68b56fe1cb2e9f9a9ed6, which adds comprehensive blocking of the OPENCLAW_ prefix in workspace dotenv parsing. Vendor advisory available at https://github.com/openclaw/openclaw/security/advisories/GHSA-hxvm-xjvf-93f3 confirms the patched version. If immediate upgrade is not feasible, implement compensating controls: restrict workspace sources to trusted repositories only, manually audit all .env files in existing workspaces for OPENCLAW_ variables before opening projects (filter via 'grep OPENCLAW_ .env'), and run OpenClaw with a restrictive file system sandbox that prevents modification of trusted paths. Note that the workaround of manual auditing creates operational overhead and is error-prone - it does not prevent exploitation if a malicious .env is missed during review. Organizations should prioritize the patch over workarounds given the low upgrade complexity (single package version bump with no breaking changes noted in the changelog).
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
OpenClaw sandbox browser functionality launches x11vnc for noVNC observer sessions without requiring authentication, all
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
OpenClaw versions prior to 2026.2.22 contain a resource exhaustion vulnerability where the application fails to consiste
OpenClaw versions prior to 2026.3.1 contain a sandbox escape vulnerability that allows authenticated attackers with low
OpenClaw versions 2026.1.30 and below fail to validate Telegram webhook secret tokens when `channels.telegram.webhookSec
Same weakness CWE-184 – Incomplete List of Disallowed Inputs
View allSame technique Information Disclosure
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-28194
GHSA-hxvm-xjvf-93f3