Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconGain write access to workspace .env file
-
DeliveryCreate malicious .env with endpoint override variables
-
ExploitUser loads workspace configuration
-
InstallloadWorkspaceDotEnvFile processes .env
-
C2Endpoint variables override operator config
-
ExecuteConnector traffic redirected to attacker endpoint
-
ImpactAttacker intercepts credentials and message content
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service Proxy/intermediary controls
|
| Exploitation Conditions | The attacker must have local write access to the workspace .env file or a version control repository containing it. The vulnerability requires that a user with sufficient privileges to load workspace configuration read and process the malicious .env file (UI:R - user interaction is required to trigger dotenv loading in the affected versions). The vulnerable endpoint variables are specific to the four named connectors: Matrix (MATRIX_HOMESERVER, MATRIX_<ACCOUNT>_HOMESERVER patterns), Mattermost (MATTERMOST_URL), IRC (IRC_HOST), and Synology (SYNOLOGY_CHAT_INCOMING_URL, SYNOLOGY_NAS_HOST, plus generic *_API_HOST and *_BASE_URL suffixes). No authentication bypass or network access is required; exploitation is limited to local workspace access and depends on file write permissions and configuration reload. Non-vulnerable configurations include air-gapped or read-only workspace directories where users cannot modify .env files, and deployments using separate global runtime dotenv loading that is not overridden by workspace files. |
| Impact | CVSS score of 5.0 (local access, low complexity, low privilege, requires user interaction, no scope change, high confidentiality) indicates moderate risk grounded in realistic deployment constraints. The attack vector (AV:L) and privilege requirement (PR:L) mean this is not a network-exploitable vulnerability - an attacker must already have local workspace file access and trick a user into loading a malicious .env file (UI:R). EPSS data is not provided, limiting quantitative exploitation probability assessment. No active exploitation has been reported (not in CISA KEV), and no public exploit code is referenced. The real-world impact is confined to environments where an untrusted actor can modify workspace dotenv files - this is a realistic scenario in shared development environments or through compromised CI/CD pipelines, but not a widespread immediate threat. The high confidentiality impact (C:H) reflects that redirected traffic could enable man-in-the-middle attacks to intercept sensitive connector communications. CVSS vector and description align: local attacker with workspace access, no elevated privileges required beyond file write access, limited by user interaction requirement (loading the workspace). This is a legitimate but lower-priority vulnerability compared to network-based attacks; priority depends on the organization's workspace access control model and whether untrusted users can modify dotenv files. |
| Exploit ScenarioDerived | An attacker with write access to a shared workspace (e.g., through a compromised developer account or by committing to a cloned workspace) creates a malicious .env file containing MATRIX_HOMESERVER=https://evil-matrix.example.com. When a workspace administrator or user loads the workspace configuration, OpenClaw reads the .env file and redirects all Matrix connector traffic through the attacker's endpoint, allowing the attacker to intercept authentication tokens, message content, and other sensitive data transmitted to the legitimate Matrix homeserver. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 11, 2026
OpenClaw before 2026.4.22 allows workspace dotenv files to override connector endpoint hosts for Matrix, Mattermost, IRC, and Synology connectors, enabling local attackers with workspace access to redirect runtime traffic to malicious endpoints. The vulnerability requires local access and user interaction but allows high confidentiality impact through traffic interception. No active exploitation has been identified, but a vendor-released patch is available.
RemediationAI
Vendor-released patch: upgrade to OpenClaw 2026.4.22 or later. The patch is published on npm and the compiled package contains the fix (commit 0623079e98abf7202591f1b04a89755eb7ec9272 is contained in the v2026.4.22 release tag). For deployments unable to upgrade immediately, restrict write access to workspace .env files to trusted administrators only - prevent untrusted users and automated processes from modifying or committing .env files into shared workspaces. Additionally, audit existing .env files in all workspaces for the presence of suspicious endpoint variables (MATRIX_HOMESERVER, MATTERMOST_URL, IRC_HOST, SYNOLOGY_CHAT_INCOMING_URL, SYNOLOGY_NAS_HOST, or *_HOMESERVER patterns) and verify that connector traffic is reaching the intended endpoints rather than attacker-controlled hosts. The patch blocks these variables at load time, but compensating controls depend on enforcing file-level access controls and monitoring endpoint configurations.
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 dotenv files to manage environment configuration for bundled connectors that integrate with Matrix, Mattermost, IRC, and Synology endpoints. The vulnerability exists in the workspace dotenv loading mechanism (loadWorkspaceDotEnvFile function in src/infra/dotenv.ts), which failed to block sensitive endpoint-related environment variables. An attacker with workspace file access could craft a .env file containing variables like MATRIX_HOMESERVER, MATTERMOST_URL, IRC_HOST, SYNOLOGY_CHAT_INCOMING_URL, SYNOLOGY_NAS_HOST, or per-account Matrix homeserver suffixes (MATRIX_<ACCOUNT>_HOMESERVER) to override the operator-configured endpoints. The root cause (CWE-441: Unintended Proxy or Intermediary) stems from insufficient input validation and lack of blocklist enforcement in the dotenv loader. The fix implements a blocklist (BLOCKED_WORKSPACE_DOTENV_KEYS and BLOCKED_WORKSPACE_DOTENV_SUFFIXES) that prevents workspace .env files from overriding these critical connector configuration values while allowing trusted global runtime dotenv loading to remain separate.
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:L/AT:P/PR:L/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
2DescriptionCVE.org
OpenClaw before 2026.4.22 allows workspace dotenv files to override connector endpoint hosts for Matrix, Mattermost, IRC, and Synology connectors. Attackers with workspace access can redirect runtime traffic to malicious endpoints by setting endpoint variables in dotenv files.
Blast Radius
ecosystem impact- 1 npm packages depend on openclaw (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 2026.4.22.
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
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
EUVD-2026-29148
GHSA-5jgm-f9wr-9qm7
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB