Skip to main content
EPSS 0.9%top 41%

Openclaw cli: OpenClaw's Windows cmd.exe parsing may bypass exec allowlist/approval gating (CVE-2026-28391)

0
Critical
Published: 08/13/2026 (08/13/2026, 17:21:32 UTC)
Source: GCVE Database
Product: openclaw-cli

Description

OpenClaw CLI versions up to 2026.2.1 on Windows nodes have a critical vulnerability in their exec allowlist/approval gating. The vulnerability arises because the allowlist analysis does not properly model Windows cmd.exe parsing and metacharacter behavior, allowing crafted commands to bypass restrictions. This can lead to execution of unauthorized commands. The issue is fixed in version 2026.2.2 and later by improving allowlist enforcement and avoiding cmd.exe invocation in allowlist mode.

CVSS v3.1

Score 9.8critical

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected software

Homebrewmore threats →ghsa
openclaw-cli
pkg:brew/openclaw-cli
Affected versions
<2026.7.1

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

AILast updated: 10/04/2026, 13:11:38 UTC

Technical Analysis

OpenClaw CLI on Windows executes commands via 'cmd.exe /d /s /c <rawCommand>'. In allowlist or approval-gated mode, the allowlist analysis failed to account for Windows cmd.exe parsing and metacharacters such as command chaining ('&') and environment variable expansion ('%...%' or '!…!'). This flaw allows crafted command strings to bypass exec allowlist or approval gating by exploiting cmd.exe's parsing behavior. The vulnerability affects versions up to 2026.2.1. The fix, introduced in 2026.2.2, hardens allowlist enforcement by passing platform information into allowlist analysis, rejecting Windows shell metacharacters, treating cmd.exe invocation as unsafe, and executing parsed argv directly when possible to avoid cmd.exe.

Potential Impact

An attacker able to submit exec requests on Windows nodes with allowlist or approval gating enabled can bypass these restrictions and execute arbitrary commands. This leads to full compromise of confidentiality, integrity, and availability on affected systems. The CVSS score is 9.8 (critical), reflecting network attack vector, low attack complexity, no privileges or user interaction required, and high impact on confidentiality, integrity, and availability.

Mitigation Recommendations

A patch is available and should be applied by upgrading OpenClaw CLI to version 2026.2.2 or later. The fix improves allowlist enforcement and avoids unsafe cmd.exe invocation. Systems not using exec allowlist/approval gating on Windows nodes are not affected. No additional mitigations are required beyond applying the official fix.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
BREW-openclaw-cli-CVE-2026-28391
Osv Schema Version
1.7.3
Ecosystems
["Homebrew"]
Cvss Version
3.1

Threat ID: 6ac245cb12601ec6a3167f24

Added to database: 10/04/2026, 12:25:47 UTC

Last enriched: 10/04/2026, 13:11:38 UTC

Last updated: 10/04/2026, 16:08:37 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses