The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-28391

CVE-2026-28391: OpenClaw Command Injection Vulnerability

CVE-2026-28391 is a command injection flaw in OpenClaw that lets attackers bypass command approval using Windows cmd.exe metacharacters. This article covers technical details, affected versions, security impact, and mitigation.

Published: March 6, 2026

CVE-2026-28391 Overview

OpenClaw versions prior to 2026.2.2 contain a critical command injection vulnerability due to improper validation of Windows cmd.exe metacharacters in allowlist-gated exec requests. Remote attackers can exploit this flaw by crafting command strings containing shell metacharacters such as & or %...% to bypass command approval restrictions and execute unapproved commands beyond the allowlisted operations.

Critical Impact

Remote attackers can bypass security controls and execute arbitrary commands on affected Windows systems, potentially leading to complete system compromise without authentication.

Affected Products

  • OpenClaw versions prior to 2026.2.2

Discovery Timeline

  • 2026-03-05 - CVE CVE-2026-28391 published to NVD
  • 2026-03-05 - Last updated in NVD database

Technical Details for CVE-2026-28391

Vulnerability Analysis

This vulnerability stems from CWE-184 (Incomplete List of Disallowed Inputs), where the allowlist enforcement mechanism fails to account for Windows-specific command shell metacharacters. The exec approval system was designed to restrict command execution to a predefined set of safe operations, but the validation logic did not properly sanitize Windows cmd.exe special characters that can be used to chain or inject additional commands.

When processing exec requests on Windows systems, the application parses command strings through an allowlist validator. However, this validator was not platform-aware and did not block Windows-specific metacharacters like & (command chaining), | (piping), ^ (escape character), % (environment variable expansion), and ! (delayed expansion). An attacker could construct a command that appears to match an allowlisted operation but contains hidden metacharacters that execute additional malicious commands when processed by cmd.exe.

Root Cause

The root cause is an incomplete blocklist implementation in the exec approval validation logic. The original code defined DISALLOWED_PIPELINE_TOKENS to block certain shell metacharacters, but this list was Unix-centric and did not include Windows-specific tokens. The validation code lacked platform awareness, meaning it applied the same sanitization rules regardless of whether the target system was running Windows or a Unix-like operating system.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker can submit a crafted exec request that includes Windows metacharacters embedded within what appears to be an allowlisted command. For example, a request might use the & character to append an unauthorized command after an approved one, or use %VARIABLE% syntax to inject environment variable content. Since the validator does not strip or reject these characters, the full command string passes validation but executes multiple operations when processed by the Windows shell.

The security patch introduces platform-aware validation by adding a WINDOWS_UNSUPPORTED_TOKENS set and passing the platform information to the allowlist evaluation function:

typescript
const DISALLOWED_PIPELINE_TOKENS = new Set([">", "<", "`", "\n", "\r", "(", ")"]);
const DOUBLE_QUOTE_ESCAPES = new Set(["\\", '"', "$", "`", "\n", "\r"]);
+const WINDOWS_UNSUPPORTED_TOKENS = new Set([
+  "&",
+  "|",
+  "<",
+  ">",
+  "^",
+  "(",
+  ")",
+  "%",
+  "!",
+  "\n",
+  "\r",
+]);

Source: GitHub Commit Update

The patch also modifies the bash-tools exec handler to pass platform information to the allowlist evaluator:

typescript
          safeBins: new Set(),
          cwd: workdir,
          env,
+          platform: nodeInfo?.platform,
        });
        let analysisOk = baseAllowlistEval.analysisOk;
        let allowlistSatisfied = false;

Source: GitHub Commit Update

Detection Methods for CVE-2026-28391

Indicators of Compromise

  • Exec requests containing Windows metacharacters (&, |, ^, %, !) in command strings
  • Unexpected command execution patterns on Windows systems running OpenClaw
  • Process creation events showing chained commands from OpenClaw-related processes

Detection Strategies

  • Monitor exec request logs for command strings containing Windows shell metacharacters
  • Implement behavioral detection rules for unusual child process spawning from OpenClaw processes
  • Analyze network traffic for exec API requests with suspicious command patterns

Monitoring Recommendations

  • Enable verbose logging for all exec requests processed by OpenClaw
  • Configure SIEM alerts for command injection pattern matches in application logs
  • Deploy endpoint detection to monitor cmd.exe process trees originating from OpenClaw

How to Mitigate CVE-2026-28391

Immediate Actions Required

  • Upgrade OpenClaw to version 2026.2.2 or later immediately
  • Review recent exec request logs for potential exploitation attempts
  • Consider temporarily disabling allowlist-gated exec functionality until patching is complete

Patch Information

The vulnerability is addressed in OpenClaw version 2026.2.2. The fix introduces platform-aware validation by adding a comprehensive set of Windows-specific tokens to the blocklist and modifying the allowlist evaluation to consider the target platform. For technical details on the patch implementation, see the GitHub Commit Update and the GitHub Security Advisory GHSA-qj77-c3c8-9c3q.

Workarounds

  • Implement network-level filtering to reject exec requests containing Windows metacharacters
  • Restrict access to the exec API endpoint to trusted networks only
  • Deploy a web application firewall (WAF) with rules to detect command injection patterns
bash
# Example: Block metacharacters at network level (if using nginx)
location /api/exec {
    if ($request_body ~* "[&|^%!]") {
        return 403;
    }
    proxy_pass http://openclaw_backend;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechOpenclaw

  • SeverityCRITICAL

  • CVSS Score9.2

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-184
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-qj77-c3c8-9c3q

  • VulnCheck Command Injection Advisory
  • Related CVEs
  • CVE-2026-35641: Openclaw RCE Vulnerability

  • CVE-2026-35650: Openclaw RCE Vulnerability

  • CVE-2026-35643: Openclaw Openclaw RCE Vulnerability

  • CVE-2026-32917: Openclaw Remote Command Injection Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English