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

CVE-2026-44995: Openclaw RCE Vulnerability

CVE-2026-44995 is a remote code execution flaw in Openclaw that allows attackers to inject malicious code through improper environment variable validation in MCP stdio server configuration. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: May 18, 2026

CVE-2026-44995 Overview

CVE-2026-44995 is an arbitrary code execution vulnerability in OpenClaw versions prior to 2026.4.20. The flaw stems from improper validation of environment variables in the Model Context Protocol (MCP) stdio server configuration. Malicious workspace configurations can pass dangerous startup variables such as NODE_OPTIONS, LD_PRELOAD, or BASH_ENV to spawned MCP server processes. When an operator starts a session using a tainted server entry, the injected environment triggers code execution in the spawned process. The weakness is categorized under CWE-829: Inclusion of Functionality from Untrusted Control Sphere.

Critical Impact

Attackers who control workspace MCP configurations can execute arbitrary code on the operator's host when an MCP stdio server session starts.

Affected Products

  • OpenClaw versions before 2026.4.20
  • OpenClaw distributions running on Node.js
  • Workspaces that load untrusted MCP stdio server entries

Discovery Timeline

  • 2026-05-11 - CVE-2026-44995 published to NVD
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-44995

Vulnerability Analysis

OpenClaw spawns MCP stdio servers as child processes using configuration supplied by the active workspace. Before the fix, the helper toMcpStringRecord in src/agents/mcp-config-shared.ts accepted any string-valued keys from the workspace's env map and forwarded them to the child process unchanged. This allowed dangerous host environment variables that influence loader and runtime behavior, including NODE_OPTIONS, LD_PRELOAD, LD_LIBRARY_PATH, and BASH_ENV, to be passed straight into the spawned MCP process. Local code execution occurs when the operator starts a session backed by the malicious configuration.

Root Cause

The MCP configuration loader did not distinguish between user-defined application variables and reserved variables that the operating system or language runtime interprets at process start. Because the entire workspace env block was treated as opaque string data, a workspace author could smuggle interpreter hooks into the child environment, breaking the trust boundary between workspace data and host execution.

Attack Vector

Exploitation requires local access and user interaction: a victim must open a workspace that contains a crafted MCP stdio server entry and start a session that launches the server. No elevated privileges are needed beyond those of the user running OpenClaw.

typescript
// Patch excerpt from src/agents/mcp-config-shared.ts
+import {
+  isDangerousHostEnvOverrideVarName,
+  isDangerousHostEnvVarName,
+} from "../infra/host-env-security.js";
+
 export function isMcpConfigRecord(value: unknown): value is Record<string, unknown> {
   return value !== null && typeof value === "object" && !Array.isArray(value);
 }
 
-export function toMcpStringRecord(
+function toMcpFilteredStringRecord(
   value: unknown,
-  options?: { onDroppedEntry?: (key: string, value: unknown) => void },
+  options?: {
+    onDroppedEntry?: (key: string, value: unknown) => void;
+    shouldDropKey?: (key: string) => boolean;
+  },
 ): Record<string, string> | undefined {
   if (!isMcpConfigRecord(value)) {
     return undefined;
   }
   const entries = Object.entries(value)
     .map(([key, entry]) => {
+      if (options?.shouldDropKey?.(key)) {
+        options?.onDroppedEntry?.(key, entry);
+        return null;
+      }
       if (typeof entry === "string") {
         return [key, entry] as const;
       }

Source: OpenClaw commit 62fa5071. The patch introduces isDangerousHostEnvOverrideVarName and isDangerousHostEnvVarName checks and renames the helper to toMcpFilteredStringRecord so callers must opt into a key-filtering policy before child processes inherit workspace-provided variables.

Detection Methods for CVE-2026-44995

Indicators of Compromise

  • Workspace MCP configuration files containing env entries for NODE_OPTIONS, LD_PRELOAD, LD_LIBRARY_PATH, DYLD_INSERT_LIBRARIES, or BASH_ENV.
  • Child processes of OpenClaw launching with unexpected --require or --import Node.js flags from inherited NODE_OPTIONS.
  • Unfamiliar shared libraries loaded by Node.js or shell processes spawned from OpenClaw sessions.

Detection Strategies

  • Audit workspace repositories and MCP server definitions for environment keys that match known dangerous loader variables.
  • Compare the OpenClaw version reported in telemetry against 2026.4.20 to identify hosts still exposed to the vulnerability.
  • Hunt for process-creation events where the parent is an OpenClaw or MCP stdio binary and the child inherits non-empty NODE_OPTIONS or LD_PRELOAD values.

Monitoring Recommendations

  • Forward endpoint process-creation and environment-variable telemetry to a centralized analytics pipeline for retrospective hunting.
  • Alert on writes to workspace configuration paths that introduce new MCP env keys outside an approved allowlist.
  • Track outbound connections initiated by MCP stdio child processes, which can reveal post-exploitation activity from injected loaders.

How to Mitigate CVE-2026-44995

Immediate Actions Required

  • Upgrade OpenClaw to version 2026.4.20 or later, which ships the dangerous-variable filter.
  • Review every workspace's MCP stdio server entries and remove unrecognized env keys before reopening the workspace.
  • Restrict workspace sharing to trusted sources until upgraded clients are deployed across the team.

Patch Information

The fix is delivered in OpenClaw commits 62fa5071 and 85d86ebc, and is documented in the OpenClaw GHSA-mj59-h3q9-ghfh advisory and the VulnCheck advisory. The patch blocks dangerous host environment variable names from being forwarded to MCP stdio child processes.

Workarounds

  • Do not open untrusted workspaces or MCP server bundles with vulnerable OpenClaw builds.
  • Strip env blocks from MCP stdio configurations and rely on host-managed environments until the upgrade is applied.
  • Run OpenClaw under a least-privilege user account and within an isolated sandbox to limit the impact of a successful injection.
bash
# Verify the installed OpenClaw version is patched
npm ls openclaw | grep openclaw
# Expected: openclaw@2026.4.20 or newer

# Audit workspace MCP configs for dangerous env keys
grep -REn 'NODE_OPTIONS|LD_PRELOAD|LD_LIBRARY_PATH|DYLD_INSERT_LIBRARIES|BASH_ENV' \
  .openclaw/ workspaces/

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

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/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
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-829
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory
  • Vendor Resources
  • GitHub Commit Update

  • VulnCheck Advisory on OpenClaw
  • Related CVEs
  • CVE-2026-45004: Openclaw Openclaw RCE Vulnerability

  • CVE-2026-43584: OpenClaw RCE Vulnerability

  • CVE-2026-44115: OpenClaw RCE Vulnerability Explained

  • CVE-2026-44114: OpenClaw RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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