banner logoJoin us at RSAC™ 2026 Conference, March 23–March 26 | North Expo, Booth N-5863Join us at RSAC™ 2026, March 23–March 26Learn More
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
    • 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
      Digital Forensics, IRR & Breach Readiness
    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
    • 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-27487

CVE-2026-27487: Openclaw Openclaw RCE Vulnerability

CVE-2026-27487 is a remote code execution vulnerability in Openclaw Openclaw affecting macOS users. An OS command injection flaw in the keychain credential refresh allows attackers to execute arbitrary commands. This post covers technical details, affected versions, impact, and mitigation.

Published: February 27, 2026

CVE-2026-27487 Overview

CVE-2026-27487 is an OS command injection vulnerability in OpenClaw, a personal AI assistant application. In versions 2026.2.13 and below, the macOS-specific keychain credential refresh functionality constructs a shell command using user-controlled OAuth tokens when writing JSON data via security add-generic-password -w. Because OAuth tokens are user-controlled data passed directly into shell commands, an attacker could craft a malicious OAuth token payload to execute arbitrary system commands with the privileges of the OpenClaw process.

Critical Impact

This command injection vulnerability allows attackers to execute arbitrary commands on macOS systems running vulnerable versions of OpenClaw, potentially leading to complete system compromise, data exfiltration, or persistent access.

Affected Products

  • OpenClaw versions 2026.2.13 and below (Node.js)
  • Apple macOS (platform dependency)
  • OpenClaw CLI credential management components

Discovery Timeline

  • February 21, 2026 - CVE-2026-27487 published to NVD
  • February 23, 2026 - Last updated in NVD database

Technical Details for CVE-2026-27487

Vulnerability Analysis

This command injection vulnerability (CWE-78) exists in OpenClaw's credential management module responsible for storing OAuth tokens in the macOS Keychain. The vulnerable code path utilized Node.js execSync to execute shell commands, concatenating user-controlled OAuth token data directly into the command string. This architectural flaw means that any attacker who can influence the OAuth token content—whether through a malicious OAuth provider, man-in-the-middle attack, or compromised authentication flow—could inject shell metacharacters and execute arbitrary commands on the target system.

The vulnerability specifically affects the writeClaudeCliKeychainCredentials function in src/agents/cli-credentials.ts, where the shell command construction failed to properly sanitize or escape the credential data before execution.

Root Cause

The root cause is the use of execSync with string-based shell command construction instead of the safer execFileSync with argument arrays. When OAuth credentials are passed directly into a shell command string, shell metacharacters such as backticks, semicolons, or command substitution syntax ($()) embedded in the token data are interpreted and executed by the shell.

The vulnerable pattern involved:

  • Using execSync which invokes a shell interpreter
  • Constructing command strings via template literals with unsanitized user data
  • Passing OAuth tokens (user-controlled) directly into shell commands

Attack Vector

An attacker could exploit this vulnerability through several scenarios:

  1. Malicious OAuth Provider: Setting up a rogue OAuth provider that returns crafted access tokens containing shell injection payloads
  2. Token Interception: Intercepting and modifying OAuth tokens during the authentication flow
  3. Social Engineering: Tricking users into authenticating with a malicious service that returns weaponized tokens

When the OpenClaw CLI attempts to refresh and store these credentials, the injected commands execute with the user's privileges, potentially allowing full system compromise.

The following code shows the security patch that addresses this vulnerability by switching from shell-based execSync to the safer execFileSync with explicit argument arrays:

typescript
 
export function writeClaudeCliKeychainCredentials(
  newCredentials: OAuthCredentials,
-  options?: { execSync?: ExecSyncFn; execFileSync?: ExecFileSyncFn },
+  options?: { execFileSync?: ExecFileSyncFn },
): boolean {
-  const execSyncImpl = options?.execSync ?? execSync;
  const execFileSyncImpl = options?.execFileSync ?? execFileSync;
  try {
-    const existingResult = execSyncImpl(
-      `security find-generic-password -s "${CLAUDE_CLI_KEYCHAIN_SERVICE}" -w 2>/dev/null`,
+    const existingResult = execFileSyncImpl(
+      "security",
+      ["find-generic-password", "-s", CLAUDE_CLI_KEYCHAIN_SERVICE, "-w"],
      { encoding: "utf8", timeout: 5000, stdio: ["pipe", "pipe", "pipe"] },
    );

Source: GitHub Commit Update

Detection Methods for CVE-2026-27487

Indicators of Compromise

  • Unusual security command executions with suspicious parameters or chained shell commands
  • Unexpected child processes spawned by OpenClaw/Node.js processes on macOS
  • OAuth token values containing shell metacharacters (;, |, $(), backticks)
  • Anomalous keychain access patterns or rapid credential refresh attempts
  • Network connections to unknown OAuth providers or authentication endpoints

Detection Strategies

  • Monitor process execution chains for security binary invocations with malformed or suspicious arguments
  • Implement endpoint detection rules for shell command injection patterns in Node.js process arguments
  • Analyze OAuth token content for shell metacharacters during authentication flows
  • Deploy behavioral analysis to detect anomalous command execution following keychain operations

Monitoring Recommendations

  • Enable audit logging for macOS security command usage and Keychain access events
  • Configure SentinelOne to alert on suspicious process trees originating from Node.js/OpenClaw processes
  • Monitor for base64-encoded or obfuscated payloads in OAuth token fields
  • Implement network monitoring for OAuth flows to detect token tampering or suspicious providers

How to Mitigate CVE-2026-27487

Immediate Actions Required

  • Upgrade OpenClaw to version 2026.2.14 or later immediately
  • Audit existing OAuth tokens for any suspicious content or shell metacharacters
  • Review macOS system logs for any evidence of exploitation
  • Consider temporarily disabling the keychain credential storage functionality if upgrade is not immediately possible
  • Verify OAuth provider configurations and ensure only trusted providers are authorized

Patch Information

OpenClaw has released version 2026.2.14 which addresses this vulnerability by replacing execSync with execFileSync and using explicit argument arrays instead of shell string interpolation. This eliminates the shell interpretation layer entirely, preventing command injection regardless of token content.

The fix is available through:

  • GitHub Release v2026.2.14
  • GitHub Security Advisory
  • Pull Request #15924

Workarounds

  • Disable automatic keychain credential storage and manage tokens manually
  • Use an alternative credential storage mechanism that doesn't involve shell execution
  • Implement input validation at the application layer to reject tokens containing shell metacharacters
  • Run OpenClaw in a sandboxed environment with restricted shell access
bash
# Verify your OpenClaw version
openclaw --version

# Upgrade to patched version
npm update openclaw@2026.2.14

# If using yarn
yarn upgrade openclaw@2026.2.14

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 Score8.0

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • GitHub Pull Request

  • GitHub Release Version
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Commit Fix

  • GitHub Commit Change

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-27001: Openclaw Openclaw RCE Vulnerability

  • CVE-2026-26323: OpenClaw Personal AI Assistant RCE Flaw

  • CVE-2026-26320: OpenClaw macOS Client RCE Vulnerability

  • CVE-2026-25593: OpenClaw AI Assistant RCE Vulnerability
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
  • English
  • 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