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

CVE-2026-35641: Openclaw RCE Vulnerability

CVE-2026-35641 is a remote code execution vulnerability in Openclaw that allows attackers to execute malicious code via crafted .npmrc files. This article covers technical details, affected versions, impact, and mitigation.

Published: April 17, 2026

CVE-2026-35641 Overview

OpenClaw before version 2026.3.24 contains an arbitrary code execution vulnerability in its local plugin and hook installation functionality. Attackers can execute malicious code by crafting a .npmrc file with a git executable override, allowing arbitrary programs to be triggered during npm install execution when processing git dependencies.

Critical Impact

Arbitrary code execution through malicious .npmrc configuration files enables attackers to compromise systems during the plugin/hook installation process, potentially leading to full system compromise.

Affected Products

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

Discovery Timeline

  • 2026-04-10 - CVE-2026-35641 published to NVD
  • 2026-04-14 - Last updated in NVD database

Technical Details for CVE-2026-35641

Vulnerability Analysis

This vulnerability (CWE-349: Acceptance of Extraneous Untrusted Data With Trusted Data) resides in OpenClaw's handling of local plugin and hook installations. The core issue stems from the application's failure to properly validate or sanitize configuration files present in staged package directories during the installation process.

When OpenClaw processes local plugins or hooks, it executes npm install within the staged package directory. If an attacker can place a malicious .npmrc file in this directory, they can override the git executable path to point to an arbitrary malicious program. Subsequently, when npm encounters git dependencies during installation, it will execute the attacker-specified program instead of the legitimate git binary.

The attack leverages npm's configuration hierarchy, where project-level .npmrc files take precedence over global and user-level configurations. This design, while intended for legitimate customization purposes, becomes a security liability when combined with OpenClaw's installation workflow that processes potentially untrusted package contents.

Root Cause

The vulnerability originates from insufficient validation of untrusted data within the staged package directory. OpenClaw does not sanitize or restrict the contents of the installation directory, allowing attacker-controlled configuration files (specifically .npmrc) to influence the behavior of subsequent npm operations. The git executable path configuration in .npmrc provides a direct code execution primitive when git-based dependencies are resolved.

Attack Vector

This is a local attack vector requiring user interaction. An attacker must convince a victim to install a malicious local plugin or hook package containing a crafted .npmrc file. The attack chain proceeds as follows:

  1. Attacker creates a malicious package containing a .npmrc file with a modified git executable path
  2. Victim downloads or receives the malicious package
  3. Victim initiates OpenClaw plugin or hook installation
  4. OpenClaw stages the package and runs npm install
  5. npm reads the malicious .npmrc and uses the attacker-specified git path
  6. When git dependencies are processed, the malicious executable runs with the victim's privileges

The attack requires the malicious package to include at least one git-based dependency to trigger the execution of the overridden git executable.

Detection Methods for CVE-2026-35641

Indicators of Compromise

  • Presence of unexpected .npmrc files in plugin or hook package directories containing modified git configuration
  • Unusual process spawning patterns during npm install operations, particularly non-standard executables being invoked as git
  • Anomalous network connections or file system modifications immediately following OpenClaw plugin installations

Detection Strategies

  • Monitor for .npmrc files in OpenClaw plugin staging directories that contain git executable overrides
  • Implement file integrity monitoring on npm configuration paths during installation workflows
  • Deploy endpoint detection rules to alert on suspicious process trees where npm spawns unexpected child processes

Monitoring Recommendations

  • Enable verbose logging for OpenClaw installation operations to capture configuration file processing
  • Implement application allowlisting to restrict which executables can be invoked during npm install operations
  • Review and audit any locally installed OpenClaw plugins or hooks for suspicious configuration files

How to Mitigate CVE-2026-35641

Immediate Actions Required

  • Upgrade OpenClaw to version 2026.3.24 or later immediately
  • Audit existing locally installed plugins and hooks for malicious .npmrc files
  • Avoid installing OpenClaw plugins or hooks from untrusted sources until patched
  • Review system logs for any suspicious activity during recent plugin installations

Patch Information

The vendor has addressed this vulnerability in OpenClaw version 2026.3.24. The security patch prevents arbitrary configuration file processing during plugin and hook installations. For detailed patch information and security advisory, refer to the GitHub Security Advisory.

Additional technical analysis is available in the VulnCheck Advisory.

Workarounds

  • Manually inspect all plugin and hook packages for .npmrc files before installation
  • Use npm's --ignore-scripts flag during installation where possible to reduce attack surface
  • Implement filesystem restrictions to prevent .npmrc file creation in staging directories
  • Consider containerizing OpenClaw plugin installations to limit potential impact of exploitation

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

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/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-349
  • Technical References
  • VulnCheck Advisory: OpenClaw RCE
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-35650: Openclaw RCE Vulnerability

  • CVE-2026-35643: Openclaw Openclaw RCE Vulnerability

  • CVE-2026-32917: Openclaw Remote Command Injection Flaw

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