Openclaw cli: OpenClaw's commands.allowFrom sender authorization accepted conversation identifiers via ctx.From
Description
OpenClaw CLI versions prior to 2026.2.23 had a vulnerability in the command authorization logic where conversation identifiers in the allowlist could authorize unintended participants. This occurred because the system treated conversation identities as valid senders, broadening command execution permissions beyond the intended sender. The issue was fixed in version 2026.2.23 by restricting authorization checks to sender-only identities and excluding conversation identifiers except as a fallback in direct-message contexts.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in OpenClaw CLI (npm package) versions <= 2026.2.22-2 involved the `commands.allowFrom` feature, which is intended as a sender authorization allowlist for commands. The root cause was that the function `resolveSenderCandidates()` always included `ctx.From` in sender candidate evaluation, but `ctx.From` could represent a conversation identity (e.g., Discord channel or WhatsApp group) rather than a single sender. This allowed participants in a conversation to gain command authorization if the allowlist contained conversation-like identifiers, effectively broadening command permissions. The fix, released in version 2026.2.23, changed the logic to treat `commands.allowFrom` strictly as sender-only, excluding `ctx.From` unless no other sender fields exist and the value is not conversation-shaped. Regression tests were added to ensure correct behavior.
Potential Impact
Affected versions allowed command or directive authorization to be granted to unintended users within a conversation or group context when conversation identifiers were used in the allowlist. This could enable unauthorized participants in a channel or group to execute commands intended only for specific senders, potentially leading to unauthorized command execution within the affected environment.
Mitigation Recommendations
A patch is available in OpenClaw CLI version 2026.2.23 that addresses this issue by restricting command authorization to sender-only identities and excluding conversation identifiers from sender candidate evaluation. Users should upgrade to version 2026.2.23 or later to remediate this vulnerability. No additional mitigation steps are required beyond applying the official fix.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-openclaw-cli-GHSA-2ch6-x3g4-7759
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 4.0
Threat ID: 6ac245d312601ec6a3168012
Added to database: 10/04/2026, 12:25:55 UTC
Last enriched: 10/04/2026, 13:16:47 UTC
Last updated: 10/04/2026, 13:16:47 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.