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-32056

CVE-2026-32056: Openclaw Openclaw RCE Vulnerability

CVE-2026-32056 is a remote code execution flaw in Openclaw Openclaw that allows attackers to bypass command allowlist protections via shell environment variables. This article covers technical details, affected versions, and mitigation.

Published: March 27, 2026

CVE-2026-32056 Overview

OpenClaw versions prior to 2026.2.22 contain a command injection vulnerability in the system.run function that fails to properly sanitize shell startup environment variables. Specifically, the HOME and ZDOTDIR environment variables are not sanitized, allowing attackers to bypass command allowlist protections. Remote attackers can exploit this flaw by injecting malicious startup files such as .bash_profile or .zshenv to achieve arbitrary code execution before allowlist-evaluated commands are executed.

Critical Impact

Remote attackers can achieve arbitrary code execution by bypassing command allowlist protections through shell startup environment variable injection, potentially leading to full system compromise.

Affected Products

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

Discovery Timeline

  • 2026-03-21 - CVE-2026-32056 published to NVD
  • 2026-03-23 - Last updated in NVD database

Technical Details for CVE-2026-32056

Vulnerability Analysis

This vulnerability (CWE-78: OS Command Injection) exists in the system.run function of OpenClaw. The function implements a command allowlist to restrict which commands can be executed, but fails to account for shell initialization behavior. When a shell spawns, it automatically sources startup configuration files from locations specified by environment variables like HOME (for bash's .bash_profile, .bashrc) and ZDOTDIR (for zsh's .zshenv, .zshrc).

By controlling these environment variables, an attacker can point the shell to a directory containing malicious startup scripts. These scripts execute before any allowlist evaluation occurs, completely bypassing the security control and enabling arbitrary code execution with the privileges of the application.

Root Cause

The root cause is insufficient sanitization of shell startup environment variables (HOME and ZDOTDIR) before invoking shell commands through the system.run function. The allowlist mechanism was designed to restrict command execution but did not consider that shells automatically execute code from startup files, creating a race condition where malicious code runs before security checks are applied.

Attack Vector

The attack is network-based and requires low privileges. An attacker can exploit this vulnerability by:

  1. Setting the HOME or ZDOTDIR environment variable to point to an attacker-controlled directory
  2. Placing a malicious shell startup file (.bash_profile, .bashrc, .zshenv, or .zshrc) in that directory
  3. Invoking the system.run function with any allowlisted command
  4. The shell automatically sources the malicious startup file before executing the allowlisted command
  5. Arbitrary code executes with the privileges of the OpenClaw application

The vulnerability exploits the shell's initialization sequence where startup files are sourced before any command execution, bypassing the allowlist security mechanism entirely.

Detection Methods for CVE-2026-32056

Indicators of Compromise

  • Unexpected modifications to HOME or ZDOTDIR environment variables in application contexts
  • Creation of shell startup files (.bash_profile, .bashrc, .zshenv, .zshrc) in unusual directories
  • Anomalous process execution chains where OpenClaw spawns unexpected child processes
  • Network connections originating from processes spawned by OpenClaw that are not part of normal operations

Detection Strategies

  • Monitor for environment variable manipulation targeting HOME and ZDOTDIR in application logs
  • Implement file integrity monitoring on directories that could be used for shell startup file injection
  • Use application-level logging to track all system.run function invocations and their environment contexts
  • Deploy endpoint detection rules to identify shell processes executing from non-standard home directories

Monitoring Recommendations

  • Enable verbose logging for the OpenClaw application to capture environment variable states during system.run calls
  • Configure SIEM rules to alert on suspicious combinations of environment variable changes followed by shell command execution
  • Monitor for process creation events where the parent process is OpenClaw and the child exhibits unusual behavior

How to Mitigate CVE-2026-32056

Immediate Actions Required

  • Upgrade OpenClaw to version 2026.2.22 or later immediately
  • Audit existing deployments for signs of exploitation by reviewing logs for unusual environment variable manipulation
  • Restrict network access to systems running vulnerable OpenClaw versions until patching is complete
  • Review and harden environment variable handling in any custom integrations with OpenClaw

Patch Information

The vulnerability has been addressed in OpenClaw version 2026.2.22. The fix sanitizes the HOME and ZDOTDIR environment variables before shell command execution. The patch is available through the GitHub Commit. Additional details can be found in the GitHub Security Advisory.

Workarounds

  • Implement application-level controls to explicitly set HOME and ZDOTDIR to safe, known values before calling system.run
  • Use containerization to isolate OpenClaw instances and limit the impact of potential exploitation
  • Deploy network segmentation to restrict access to systems running vulnerable OpenClaw versions
  • Consider using shell modes that skip startup file execution (e.g., bash --norc --noprofile) if your use case allows
bash
# Configuration example: Sanitize environment before shell execution
export HOME=/var/empty
export ZDOTDIR=/var/empty
# Ensure these directories exist but contain no shell startup files

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

  • EPSS Probability0.13%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:N/PR:L/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
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • VulnCheck Remote Code Execution Advisory
  • Vendor Resources
  • GitHub Commit Changes

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-41295: OpenClaw RCE Vulnerability

  • CVE-2026-35641: Openclaw RCE Vulnerability

  • CVE-2026-35650: Openclaw RCE Vulnerability

  • CVE-2026-35643: Openclaw 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