Skip to main content

CVE-2026-28391 — Vulnerability in openclaw — CVE Details

HIGH

OpenClaw's Windows cmd.exe parsing may bypass exec allowlist/approval gating

Published February 17, 2026Updated March 10, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (1.02%). Schedule for your next planned update.

Does your project use an affected openclaw version?

Paste your package-lock.json to check it for CVE-2026-28391 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my package-lock.json

Summary

Summary

On Windows nodes, exec requests were executed via cmd.exe /d /s /c <rawCommand>. In allowlist/approval-gated mode, the allowlist analysis did not model Windows cmd.exe parsing and metacharacter behavior. A crafted command string could cause cmd.exe to interpret additional operations (for example command chaining via &, or expansion via %...% / !...!) beyond what was allowlisted/approved.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Affected: <= 2026.2.1
  • Patched: >= 2026.2.2
  • Latest (npm) as of 2026-02-14: 2026.2.13

Details

  • Default installs: Not affected unless you opt into exec allowlist/approval gating on Windows nodes.
  • Windows execution uses cmd.exe via src/infra/node-shell.ts.
  • The fix hardens Windows allowlist enforcement by:
    • Passing the platform into allowlist analysis and rejecting Windows shell metacharacters.
    • Treating cmd.exe invocation as not allowlist-safe on Windows.
    • Avoiding cmd.exe entirely in allowlist mode by executing the parsed argv directly when possible.

Fix Commit(s)

  • a7f4a53ce80c98ba1452eb90802d447fca9bf3d6

Thanks @simecek for reporting.

Advisory Timeline

  • First published February 17, 2026 (282 days ago).
  • Last revised March 10, 2026 — 21 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update openclaw to 2026.2.2 or later
npm install openclaw@2026.2.2

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: npm (1).

PackageFixed In
openclaw npm · Affected: All versions2026.2.2

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-78
    OS Command InjectionMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

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

Frequently Asked Questions

What is CVE-2026-28391?
OpenClaw's Windows cmd.exe parsing may bypass exec allowlist/approval gating. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2026-28391?
CVE-2026-28391 affects openclaw. It has a 1.0% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-28391 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
1.02%
EPSS percentile: 62.6

This is an above-median EPSS score — 62.6% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.

Also Known As

GHSA-qj77-c3c8-9c3q

Related CVEs

  • CVE-2026-35663
    CRITICAL

    OpenClaw: Gateway Backend Reconnect lets Non-Admin Operator Scopes Self-Claim operator.admin

  • CVE-2026-34507
    CRITICAL

    OpenClaw: QQBot admin commands could skip DM-only and allowFrom policy

  • CVE-2026-41397
    HIGH

    OpenClaw: OpenShell Mirror Sync — Sandbox Escape via Unrestricted File Sync + Symlink Traversal

  • CVE-2026-45006
    HIGH

    OpenClaw's gateway config mutation guard allowed unsafe model-driven config writes

  • CVE-2026-53806
    HIGH

    OpenClaw: Combined POSIX shell options could confuse exec revalidation

  • CVE-2026-53807
    HIGH

    OpenClaw: Telegram interactive callbacks could skip commands.allowFrom

  • CVE-2026-32023
    MEDIUM

    OpenClaw's dispatch-wrapper depth-cap mismatch can bypass shell-wrapper approval gating in system.run allowlist mode

  • CVE-2026-42422
    MEDIUM

    OpenClaw `device.token.rotate` mints tokens for unapproved roles, bypassing device role-upgrade pairing

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my package-lock.json