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
    • 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-28460

CVE-2026-28460: OpenClaw Allowlist Bypass RCE Vulnerability

CVE-2026-28460 is an allowlist bypass RCE vulnerability in OpenClaw that lets attackers execute non-allowlisted commands using shell line-continuation characters. This article covers technical details, affected versions, and fixes.

Published: March 20, 2026

CVE-2026-28460 Overview

CVE-2026-28460 is a command injection vulnerability affecting OpenClaw versions prior to 2026.2.22. The vulnerability exists in the system.run function where attackers can bypass the allowlist security mechanism by exploiting shell line-continuation characters. By injecting $\\ followed by a newline and opening parenthesis inside double quotes, attackers can cause the shell to fold the line continuation into executable command substitution, effectively circumventing the intended security approval boundaries.

This allowlist bypass vulnerability allows authenticated attackers with network access to execute arbitrary commands that would normally be blocked by OpenClaw's security controls, potentially leading to unauthorized system modifications and limited availability impact.

Critical Impact

Attackers can bypass OpenClaw's command allowlist security controls to execute non-approved commands, potentially compromising system integrity through unauthorized command execution.

Affected Products

  • OpenClaw versions prior to 2026.2.22
  • OpenClaw for Node.js (all versions before the security patch)

Discovery Timeline

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

Technical Details for CVE-2026-28460

Vulnerability Analysis

This vulnerability is classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command), commonly known as OS Command Injection. The core issue lies in how OpenClaw's security analysis fails to properly detect and block shell line-continuation sequences within command strings.

OpenClaw implements an allowlist mechanism to restrict which commands can be executed through the system.run interface. However, the security analysis can be circumvented by exploiting how shells interpret line-continuation characters (\\ followed by a newline). When an attacker crafts a command containing $\\ followed by a newline and an opening parenthesis within double quotes, the shell interprets this as a folded line continuation that becomes executable command substitution.

The vulnerability allows attackers with low privileges to bypass security boundaries over the network. While confidentiality is not directly impacted, the vulnerability enables high integrity impact through unauthorized command execution and limited availability disruption.

Root Cause

The root cause stems from an incomplete set of characters being validated within double-quoted strings during security analysis. The original implementation tracked certain escape sequences (\\, ", $, `) but failed to include newline and carriage return characters (\n, \r) in the DOUBLE_QUOTE_ESCAPES set. Additionally, there was no explicit check for shell line-continuation patterns (\\ followed by newlines) that could be used to split and obfuscate malicious command substitutions.

Attack Vector

The attack exploits the network-accessible system.run function in OpenClaw. An authenticated attacker with low privileges can craft a specially formatted command string that appears benign to the allowlist analysis but executes unauthorized commands when processed by the shell. The attack requires precise payload positioning, where the shell line-continuation pattern is embedded within double-quoted regions of the command string. This causes the static analysis to see a different command structure than what the shell ultimately executes.

typescript
// Security patch from src/infra/exec-approvals-allowlist.ts
// Source: https://github.com/openclaw/openclaw/commit/3f0b9dbb36c86e308267924c0d3d4a4e1fc4d1e9

   validateSafeBinArgv,
 } from "./exec-safe-bin-policy.js";
 import { isTrustedSafeBinPath } from "./exec-safe-bin-trust.js";
+
+function hasShellLineContinuation(command: string): boolean {
+  return /\\(?:\r\n|\n|\r)/.test(command);
+}
+
 export function normalizeSafeBins(entries?: string[]): Set<string> {
   if (!Array.isArray(entries)) {
     return new Set();
typescript
// Security patch from src/infra/exec-approvals-analysis.ts
// Source: https://github.com/openclaw/openclaw/commit/3f0b9dbb36c86e308267924c0d3d4a4e1fc4d1e9

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

Detection Methods for CVE-2026-28460

Indicators of Compromise

  • Unusual command strings containing backslash-newline sequences (\\\n or \\\r\n) in application logs
  • Commands submitted to system.run containing $( or backtick sequences that were not previously approved
  • Error logs indicating command execution failures following allowlist validation passes
  • Audit trail showing commands executed that differ structurally from submitted command strings

Detection Strategies

  • Implement logging at the system.run interface to capture both the submitted command and the actual executed command for comparison
  • Deploy application-level monitoring to detect command strings containing shell metacharacters combined with line-continuation patterns
  • Use regex-based log analysis to identify patterns matching /\$\\(?:\r\n|\n|\r)\(/ in command submissions
  • Configure alerts for any execution of commands not present in the explicit allowlist

Monitoring Recommendations

  • Enable verbose logging for the OpenClaw exec-approvals-allowlist and exec-approvals-analysis modules
  • Monitor for discrepancies between statically analyzed command structures and runtime execution behavior
  • Implement centralized logging for all system.run invocations with full command string capture
  • Review audit logs for authenticated users submitting unusually formatted command strings

How to Mitigate CVE-2026-28460

Immediate Actions Required

  • Upgrade OpenClaw to version 2026.2.22 or later immediately
  • Audit recent system.run invocations for potential exploitation attempts
  • Review allowlist configurations to ensure minimal required command permissions
  • Consider temporarily disabling system.run functionality if immediate patching is not possible

Patch Information

OpenClaw has released a security patch in version 2026.2.22 that addresses this vulnerability. The fix introduces a new hasShellLineContinuation() function that explicitly detects and blocks shell line-continuation patterns before allowlist validation occurs. Additionally, the DOUBLE_QUOTE_ESCAPES set has been refined to properly handle escape character validation.

Patch details are available in the GitHub Security Advisory GHSA-9868 and the security commit.

Workarounds

  • Implement an additional input validation layer that rejects any command strings containing backslash followed by newline characters
  • Restrict system.run access to only highly trusted authenticated users pending patch deployment
  • Deploy a web application firewall rule to block requests containing shell line-continuation patterns
  • Consider using command allowlisting at the OS level (e.g., AppArmor, SELinux) as defense-in-depth
bash
# Example: Input validation regex to detect line-continuation bypass attempts
# Add this check before passing commands to system.run
grep -P '\\\r?\n' command_input.txt && echo "Blocked: Line continuation detected"

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechOpenclaw

  • SeverityMEDIUM

  • CVSS Score6.0

  • EPSS Probability0.04%

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

  • GitHub Security Advisory GHSA-9868
  • Related CVEs
  • CVE-2026-32917: Openclaw Remote Command Injection Flaw

  • CVE-2026-32920: Openclaw RCE Vulnerability

  • CVE-2026-32971: Openclaw RCE Vulnerability

  • CVE-2026-32978: Openclaw RCE Vulnerability
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