CVE-2026-28391
JSON

9.2critical

OpenClaw < 2026.2.2 - Command Injection via cmd.exe Parsing Bypass in Allowlist Enforcement

Severity
9.2critical CVSS:4.0 by VulnCheck
Exploit likelihood
0.59% (higher than 49% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck
Also known as
GHSA-qj77-c3c8-9c3q

Description

OpenClaw versions prior to 2026.2.2 fail to properly validate Windows cmd.exe metacharacters in allowlist-gated exec requests (non-default configuration), allowing attackers to bypass command approval restrictions. Remote attackers can craft command strings with shell metacharacters like & or %...% to execute unapproved commands beyond the allowlisted operations.

Affected

Product or packageVersionsReported by
OpenClaw OpenClawbefore 2026.2.2CVE List, NVD
openclaw (npm)before 2026.2.2GitHub Advisory Database

All scores

VulnCheck9.2critical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
VulnCheck9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub9.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Classification

CWE-78

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

OpenClaw versions prior to 2026.2.2 fail to properly validate Windows cmd.exe metacharacters in allowlist-gated exec requests (non-default configuration), allowing attackers to bypass command approval restrictions. Remote attackers can craft command strings with shell metacharacters like & or %...% to execute unapproved commands beyond the allowlisted operations.

GitHub Advisory Database
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.

NVD (es)

Las versiones de OpenClaw anteriores a 2026.2.2 no validan correctamente los metacaracteres de cmd.exe de Windows en solicitudes de ejecución controladas por una lista de permitidos, lo que permite a los atacantes eludir las restricciones de aprobación de comandos. Los atacantes remotos pueden diseñar cadenas de comandos con metacaracteres de shell como &amp; o %...% para ejecutar comandos no aprobados más allá de las operaciones permitidas.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-28391 changed 2026-03-10CVE Terms of Use
GitHub Advisory DatabaseGHSA-qj77-c3c8-9c3q changed 2026-03-10CC-BY-4.0
NVDCVE-2026-28391 changed 2026-06-17Public domain