GHSA-2gvc-4f3c-2855: OpenClaw: auth bypass lets DM senders run room commands
GHSA-2gvc-4f3c-2855 HIGHOpenClaw, an AI agent framework, contains an authorization boundary flaw (CWE-863) where any Matrix user previously paired via DM can execute room control commands without being on the room allowlist, room membership list, or group allowlist. For teams running OpenClaw with privileged tool policies — code execution, external API calls, or data access — a single DM-paired attacker posting in a bot room gains the same command authority as an explicitly authorized administrator, making this a lateral privilege escalation path inside the AI agent's trust model. While downstream package exposure is limited (4 dependents) and no public exploit exists, the attack requires minimal effort from any already-paired sender and the impact scales with how permissive the deployment's command-and-tool policy is. Upgrade to OpenClaw 2026.4.15 immediately; no workaround exists for earlier versions, and the fix is verified with regression tests covering exactly this bypass path.
What is the risk?
MEDIUM-HIGH. The vulnerability requires a precondition (attacker must already hold a valid Matrix DM pairing with the target OpenClaw instance), which constrains the attacker pool to insiders, former users, or anyone who socially engineered a pairing. However, once that precondition is met, exploitation is straightforward: post to a bot room and issue a control command. Severity scales directly with the deployment's command-and-tool policy — a low-privilege deployment has low blast radius; a deployment granting shell execution or secrets access is critically exposed. No EPSS data exists, no KEV listing, and no public exploit is available, reducing near-term risk, but the 135 other CVEs tracked in the same package signal a pattern of security debt in this project.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| OpenClaw | npm | > 2026.3.28, < 2026.4.15 | 2026.4.15 |
Do you use OpenClaw? You're affected.
How severe is it?
What should I do?
5 steps-
PATCH
Upgrade to OpenClaw 2026.4.15, which restricts room command authorizers to only commandAllowFrom configured sender IDs, effective room users, and group allowlists. Verify the fix by confirming commit f8705f512b09043df02b5da372c33374734bd921 and 2bfd808a83116bd888e3e2633a61473fa2ed81b6 are present.
-
AUDIT
Review all active Matrix DM pairings in the OpenClaw pairing store; revoke any pairings for users who should not have room-level command access.
-
DETECT
Check OpenClaw room command logs for unexpected room control events from senders not in your room allowlist — any such event on a pre-patch instance is a strong indicator of exploitation.
-
HARDEN
Apply least-privilege principles to command-and-tool policies; ensure OpenClaw's tool policy does not grant privileged capabilities (shell access, credential retrieval, external API calls) unless explicitly required.
-
NO WORKAROUND
There is no configuration workaround for affected versions; patching is the only remediation.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is GHSA-2gvc-4f3c-2855?
OpenClaw, an AI agent framework, contains an authorization boundary flaw (CWE-863) where any Matrix user previously paired via DM can execute room control commands without being on the room allowlist, room membership list, or group allowlist. For teams running OpenClaw with privileged tool policies — code execution, external API calls, or data access — a single DM-paired attacker posting in a bot room gains the same command authority as an explicitly authorized administrator, making this a lateral privilege escalation path inside the AI agent's trust model. While downstream package exposure is limited (4 dependents) and no public exploit exists, the attack requires minimal effort from any already-paired sender and the impact scales with how permissive the deployment's command-and-tool policy is. Upgrade to OpenClaw 2026.4.15 immediately; no workaround exists for earlier versions, and the fix is verified with regression tests covering exactly this bypass path.
Is GHSA-2gvc-4f3c-2855 actively exploited?
No confirmed active exploitation of GHSA-2gvc-4f3c-2855 has been reported, but organizations should still patch proactively.
How to fix GHSA-2gvc-4f3c-2855?
1. PATCH: Upgrade to OpenClaw 2026.4.15, which restricts room command authorizers to only commandAllowFrom configured sender IDs, effective room users, and group allowlists. Verify the fix by confirming commit f8705f512b09043df02b5da372c33374734bd921 and 2bfd808a83116bd888e3e2633a61473fa2ed81b6 are present. 2. AUDIT: Review all active Matrix DM pairings in the OpenClaw pairing store; revoke any pairings for users who should not have room-level command access. 3. DETECT: Check OpenClaw room command logs for unexpected room control events from senders not in your room allowlist — any such event on a pre-patch instance is a strong indicator of exploitation. 4. HARDEN: Apply least-privilege principles to command-and-tool policies; ensure OpenClaw's tool policy does not grant privileged capabilities (shell access, credential retrieval, external API calls) unless explicitly required. 5. NO WORKAROUND: There is no configuration workaround for affected versions; patching is the only remediation.
What systems are affected by GHSA-2gvc-4f3c-2855?
This vulnerability affects the following AI/ML architecture patterns: AI agent frameworks, Bot orchestration platforms, Matrix-integrated automation pipelines, Multi-channel AI command interfaces.
What is the CVSS score for GHSA-2gvc-4f3c-2855?
No CVSS score has been assigned yet.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0012 Valid Accounts AML.T0049 Exploit Public-Facing Application AML.T0053 AI Agent Tool Invocation Compliance Controls Affected
What are the technical details?
Original Advisory
## Summary Matrix room control-command authorization used the effective allowlist for room traffic, which included sender IDs learned from the Matrix DM pairing store. A sender who was allowed only for a Matrix DM could therefore authorize room control commands when they also posted in a bot room. ## Impact This bypass let a DM-paired Matrix sender cross the DM/room authorization boundary and run Matrix room control commands without being present in the configured room allowlist, room membership list, or group allowlist. The issue required a sender already present in the pairing store and able to send to the target Matrix room. Severity remains high because room control commands can drive privileged OpenClaw behavior depending on the deployment's command and tool policy. ## Affected versions - Affected: `> 2026.3.28, < 2026.4.15` - Patched: `2026.4.15` ## Fix OpenClaw `2026.4.15` fixes the authorization boundary. Room control-command authorizers now use only configured sender IDs, effective room users, and group allowlists; DM pairing-store entries no longer authorize room commands. A follow-up change also skips DM pairing-store reads on room traffic. Verified in `v2026.4.15`: - `extensions/matrix/src/matrix/monitor/access-state.ts` builds room command authorizers from `commandAllowFrom`, which excludes pairing-store sender IDs for room traffic. - `extensions/matrix/src/matrix/monitor/handler.ts` gates room control commands through those authorizers. - `extensions/matrix/src/matrix/monitor/access-state.test.ts` covers a DM pairing-store sender and verifies it cannot authorize room control commands. Fix commits included in `v2026.4.15` and absent from `v2026.4.14`: - `f8705f512b09043df02b5da372c33374734bd921` via PR #67294 - `2bfd808a83116bd888e3e2633a61473fa2ed81b6` via PR #67325 Thanks to @nexrin and Keen Security Lab for reporting this issue.
Exploitation Scenario
An attacker who previously paired with an OpenClaw bot via a legitimate Matrix DM (e.g., during onboarding, a forgotten integration, or social engineering the bot owner into a pairing) remains in the DM pairing store indefinitely. On a vulnerable instance, the attacker joins or already has access to a Matrix room where the OpenClaw bot is active. They post a room control command — for example, triggering a tool that reads internal data, executes a script, or calls an external API — directly to the room. The vulnerable authorization check consults the effective allowlist, which erroneously includes DM pairing-store entries, approves the sender, and executes the privileged command. The attacker achieves agentic command execution equivalent to an authorized room administrator, potentially exfiltrating data, modifying agent behavior, or pivoting to connected systems, with no indication in the room membership list that they hold this access.
Weaknesses (CWE)
CWE-863 — Incorrect Authorization: The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.
- [Architecture and Design] Divide the product into anonymous, normal, privileged, and administrative areas. Reduce the attack surface by carefully mapping roles with data and functionality. Use role-based access control (RBAC) [REF-229] to enforce the roles at the appropriate boundaries. Note that this approach may not protect against horizontal authorization, i.e., it will not protect a user from attacking others with the same role.
- [Architecture and Design] Ensure that access control checks are performed related to the business logic. These checks may be different than the access control checks that are applied to more generic resources such as files, connections, processes, memory, and database records. For example, a database may restrict access for medical records to a specific database user, but each record might only be intended to be accessible to the patient and the patient's doctor [REF-7].
Source: MITRE CWE corpus.
References
- github.com/advisories/GHSA-2gvc-4f3c-2855
- github.com/openclaw/openclaw/commit/2bfd808a83116bd888e3e2633a61473fa2ed81b6
- github.com/openclaw/openclaw/commit/f8705f512b09043df02b5da372c33374734bd921
- github.com/openclaw/openclaw/pull/67294
- github.com/openclaw/openclaw/pull/67325
- github.com/openclaw/openclaw/security/advisories/GHSA-2gvc-4f3c-2855
Timeline
Related Vulnerabilities
CVE-2026-33579 9.9 OpenClaw: scope bypass escalates low-priv to admin
Same package: openclaw CVE-2026-32922 9.9 OpenClaw: privilege escalation to RCE via token scope bypass
Same package: openclaw CVE-2026-53838 9.8 OpenClaw: approval scope bypass via reconnection state
Same package: openclaw CVE-2026-30741 9.8 OpenClaw: RCE via request-side prompt injection
Same package: openclaw CVE-2026-32038 9.8 Analysis pending
Same package: openclaw