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

CVE-2026-41915: Openclaw RCE Vulnerability

CVE-2026-41915 is a remote code execution flaw in Openclaw that allows attackers to exploit git environment variables to redirect operations and compromise repository integrity. This post covers technical details, affected versions, impact, and mitigation strategies.

Published: April 30, 2026

CVE-2026-41915 Overview

OpenClaw before version 2026.4.8 contains an environment variable injection vulnerability that fails to sanitize git plumbing environment variables during host exec operations. Attackers with local access can exploit this flaw by setting GIT_DIR and related environment variables to redirect git operations, potentially compromising repository integrity and enabling unauthorized modifications to version control state.

Critical Impact

Attackers can manipulate git operations by injecting environment variables, potentially redirecting repository operations to attacker-controlled locations and compromising code integrity.

Affected Products

  • OpenClaw versions prior to 2026.4.8
  • OpenClaw for Node.js (all platforms)

Discovery Timeline

  • 2026-04-28 - CVE-2026-41915 published to NVD
  • 2026-04-30 - Last updated in NVD database

Technical Details for CVE-2026-41915

Vulnerability Analysis

This vulnerability stems from improper input validation (CWE-184: Incomplete List of Disallowed Inputs) where OpenClaw fails to sanitize the execution environment before performing host exec operations. The application does not filter out git-related environment variables such as GIT_DIR, GIT_WORK_TREE, GIT_INDEX_FILE, and other git plumbing variables that can fundamentally alter git's behavior.

When a user with local access executes OpenClaw operations, any pre-existing git environment variables in their session are passed through to child processes. This allows an attacker to redirect git operations to arbitrary directories, potentially enabling unauthorized access to different repositories or the creation of malicious git objects that could later be executed or deployed.

Root Cause

The root cause lies in the incomplete sanitization of the process environment before spawning git-related child processes. OpenClaw's execution environment handling did not include git plumbing environment variables in its list of filtered variables, allowing these potentially dangerous values to propagate to git operations. This oversight in the environment variable filtering logic created an attack surface where local users could manipulate the behavior of git commands executed by the application.

Attack Vector

The attack requires local access to a system running OpenClaw. An attacker can set malicious values for git environment variables before invoking OpenClaw operations. For example, by setting GIT_DIR to point to an attacker-controlled directory, subsequent git operations performed by OpenClaw would operate against the wrong repository. This could be exploited to:

  1. Redirect commits and other git operations to a different repository
  2. Inject malicious content into trusted repositories
  3. Bypass integrity checks that rely on git metadata
  4. Exfiltrate sensitive repository data to attacker-controlled locations

The security patch addresses this by restructuring the DNS pinning and proxy dispatch logic to ensure proper environment isolation:

typescript
     try {
       assertExplicitProxySupportsPinnedDns(parsedUrl, params.dispatcherPolicy, params.pinDns);
       await assertExplicitProxyAllowed(params.dispatcherPolicy, params.lookupFn, params.policy);
-      const pinned = await resolvePinnedHostnameWithPolicy(parsedUrl.hostname, {
-        lookupFn: params.lookupFn,
-        policy: params.policy,
-      });
       const canUseTrustedEnvProxy =
         mode === GUARDED_FETCH_MODE.TRUSTED_ENV_PROXY && hasProxyEnvConfigured();
       if (canUseTrustedEnvProxy) {
         dispatcher = createHttp1EnvHttpProxyAgent();
       } else if (params.pinDns === false) {
         dispatcher = createPolicyDispatcherWithoutPinnedDns(params.dispatcherPolicy);
       } else {
+        const pinned = await resolvePinnedHostnameWithPolicy(parsedUrl.hostname, {
+          lookupFn: params.lookupFn,
+          policy: params.policy,
+        });
         dispatcher = createPinnedDispatcher(pinned, params.dispatcherPolicy, params.policy);
       }
 

Source: GitHub Commit

Detection Methods for CVE-2026-41915

Indicators of Compromise

  • Unusual git environment variables (GIT_DIR, GIT_WORK_TREE, GIT_INDEX_FILE, GIT_ALTERNATE_OBJECT_DIRECTORIES) set in process environments
  • Git operations targeting unexpected directories or repositories
  • Anomalous repository modifications that don't align with expected user activity
  • Process execution logs showing OpenClaw operations with suspicious environment inheritance

Detection Strategies

  • Monitor for processes spawned by OpenClaw that have non-standard git environment variables set
  • Implement file integrity monitoring on critical git repositories to detect unauthorized modifications
  • Review application logs for git operations that reference unexpected paths
  • Use endpoint detection to identify environment variable manipulation before OpenClaw execution

Monitoring Recommendations

  • Enable verbose logging for OpenClaw operations to capture environment state
  • Configure alerts for git operations that access repositories outside expected paths
  • Implement process ancestry tracking to correlate environment variable settings with application behavior
  • Monitor for changes to .git directories in unexpected locations

How to Mitigate CVE-2026-41915

Immediate Actions Required

  • Upgrade OpenClaw to version 2026.4.8 or later immediately
  • Audit systems for any signs of exploitation, particularly unexpected repository modifications
  • Review process environments for suspicious git-related environment variables
  • Restrict local access to systems running vulnerable OpenClaw versions

Patch Information

The vulnerability has been addressed in OpenClaw version 2026.4.8. The fix is available through the GitHub Commit. Additional details are available in the GitHub Security Advisory.

Workarounds

  • Sanitize the environment before executing OpenClaw by explicitly unsetting git plumbing variables
  • Use process isolation (containers, sandboxes) to prevent environment variable inheritance
  • Implement wrapper scripts that clear dangerous environment variables before invoking OpenClaw
  • Restrict user permissions to minimize the impact of potential exploitation
bash
# Configuration example - Clear git environment variables before OpenClaw execution
unset GIT_DIR
unset GIT_WORK_TREE
unset GIT_INDEX_FILE
unset GIT_OBJECT_DIRECTORY
unset GIT_ALTERNATE_OBJECT_DIRECTORIES
unset GIT_CEILING_DIRECTORIES
# Then execute OpenClaw
openclaw <command>

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

  • EPSS Probability0.01%

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

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

  • CVE-2026-44995: Openclaw RCE Vulnerability

  • CVE-2026-43584: OpenClaw RCE Vulnerability

  • CVE-2026-44115: OpenClaw RCE Vulnerability Explained
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