Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-22168

CVE-2026-22168: Openclaw RCE Vulnerability

CVE-2026-22168 is an RCE vulnerability in Openclaw that allows authenticated operators to execute arbitrary commands via cmd.exe /c while approval logs show benign commands. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: March 20, 2026

CVE-2026-22168 Overview

OpenClaw versions prior to 2026.2.21 contain an approval-integrity mismatch vulnerability in system.run that allows authenticated operators to execute arbitrary trailing arguments after cmd.exe /c while approval text reflects only a benign command. This command injection vulnerability enables attackers to smuggle malicious arguments through cmd.exe /c to achieve local command execution on trusted Windows nodes with mismatched audit logs.

Critical Impact

Authenticated operators can bypass approval workflows and execute arbitrary commands on Windows nodes while audit logs only record benign approved commands, effectively creating an invisible execution channel that undermines security monitoring and compliance.

Affected Products

  • OpenClaw versions prior to 2026.2.21
  • OpenClaw Node.js package (cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:node.js:*:*)

Discovery Timeline

  • 2026-03-18 - CVE-2026-22168 published to NVD
  • 2026-03-19 - Last updated in NVD database

Technical Details for CVE-2026-22168

Vulnerability Analysis

This vulnerability stems from an approval-integrity mismatch in OpenClaw's system.run functionality. The core issue lies in how the system processes and validates command execution requests versus what gets recorded in approval workflows.

When an authenticated operator submits a command for execution, the approval mechanism validates and logs a sanitized representation of the command. However, the actual execution path allows additional trailing arguments to be appended after cmd.exe /c, creating a dangerous disconnect between what is approved and what is actually executed.

This architectural flaw enables attackers with valid operator credentials to craft requests where the approval text shows an innocuous command like cmd.exe /c dir, while the actual execution includes malicious payloads such as arbitrary PowerShell commands, file downloads, or system modifications. The audit trail remains clean, showing only the benign approved command.

Root Cause

The root cause is classified under CWE-88 (Improper Neutralization of Argument Delimiters in a Command). The vulnerable code failed to properly validate that the command being executed exactly matches the command that was approved. The formatExecCommand and validateSystemRunCommandConsistency functions did not adequately prevent argument injection when commands were passed through cmd.exe /c.

The security patch introduces a new resolveSystemRunCommand function with a ResolvedSystemRunCommand type that ensures consistent handling of command arguments. This new approach returns a structured object containing argv, rawCommand, shellCommand, and cmdText fields, enabling proper validation that the executed command matches the approved command text.

Attack Vector

The attack is network-accessible and requires low-privilege authentication as an operator. An attacker with valid operator credentials can exploit the approval workflow mismatch to execute arbitrary commands on Windows nodes running the OpenClaw gateway. The vulnerability is particularly dangerous because:

  1. It requires minimal complexity to exploit
  2. It bypasses approval workflows designed to prevent unauthorized execution
  3. It leaves clean audit logs that mask malicious activity
  4. It can be used to establish persistence or lateral movement while evading detection
typescript
// Security patch from src/infra/system-run-command.ts
// Source: https://github.com/openclaw/openclaw/commit/6007941f04df1edcca679dd6c95949744fdbd4df

export type ResolvedSystemRunCommand =
  | {
      ok: true;
      argv: string[];
      rawCommand: string | null;
      shellCommand: string | null;
      cmdText: string;
    }
  | {
      ok: false;
      message: string;
      details?: Record<string, unknown>;
    };

The fix introduces a strict type that ensures command resolution returns either a fully validated command structure or an explicit error, preventing the argument smuggling that enabled this vulnerability.

Detection Methods for CVE-2026-22168

Indicators of Compromise

  • Unusual cmd.exe process spawning from OpenClaw gateway services with unexpected child processes
  • Discrepancies between approved commands in OpenClaw audit logs and actual process command lines observed in Windows event logs
  • Commands containing multiple argument separators or shell metacharacters in system.run requests
  • Network connections from OpenClaw-managed Windows nodes to unexpected external destinations following command execution

Detection Strategies

  • Deploy endpoint detection rules to compare OpenClaw approval logs against Windows process creation events (Event ID 4688) for command line mismatches
  • Implement SIEM correlation rules that flag when cmd.exe /c executions contain significantly more arguments than recorded in approval workflows
  • Monitor for suspicious command patterns in process telemetry including encoded PowerShell, download cradles, or persistence mechanisms
  • Enable verbose logging on OpenClaw gateway nodes to capture full command resolution details

Monitoring Recommendations

  • Configure SentinelOne to alert on cmd.exe spawning with unusually long command lines from Node.js-based services
  • Establish baseline behavior for legitimate system.run operations and alert on deviations
  • Monitor Windows nodes managed by OpenClaw for signs of unauthorized command execution including new scheduled tasks, services, or registry modifications
  • Review OpenClaw gateway logs for patterns of repeated command submissions with similar approval text but different execution outcomes

How to Mitigate CVE-2026-22168

Immediate Actions Required

  • Upgrade OpenClaw to version 2026.2.21 or later immediately on all production systems
  • Audit recent system.run approvals and compare against actual process execution logs to identify potential exploitation
  • Temporarily restrict operator access to system.run functionality if immediate patching is not possible
  • Enable enhanced logging on OpenClaw gateways and Windows nodes to capture detailed command execution telemetry

Patch Information

The vulnerability is addressed in OpenClaw version 2026.2.21 through commit 6007941f. The fix refactors the system.run command resolution to use a new resolveSystemRunCommand function that ensures consistency between approved and executed commands.

For detailed information about the vulnerability and fix, refer to:

  • GitHub Security Advisory GHSA-5v6x-rfc3-7qfr
  • VulnCheck Command Injection Advisory

Workarounds

  • Disable the system.run capability entirely until patching is complete by modifying gateway configuration
  • Implement network segmentation to limit which nodes can receive system.run commands from the gateway
  • Deploy application-level firewalling to restrict cmd.exe execution patterns on managed Windows nodes
  • Require multi-party approval for any system.run operations until the patch is deployed
bash
# Verify OpenClaw version after upgrade
openclaw --version
# Expected output: 2026.2.21 or higher

# Review recent system.run audit logs for anomalies
openclaw audit list --type system.run --since 2026-03-01

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechOpenclaw

  • SeverityHIGH

  • CVSS Score7.1

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/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
  • AvailabilityNone
  • CWE References
  • CWE-88
  • Technical References
  • VulnCheck Command Injection Advisory
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security 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