A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-42074

CVE-2026-42074: Gitlawb Openclaude RCE Vulnerability

CVE-2026-42074 is a remote code execution flaw in Gitlawb Openclaude that allows prompt-injected models to escape the sandbox and achieve host-level code execution. This article covers technical details, affected versions, and patches.

Published: June 4, 2026

CVE-2026-42074 Overview

OpenClaude is an open-source coding-agent command line interface for cloud and local model providers. The vulnerability exposes the dangerouslyDisableSandbox parameter as part of the BashTool input schema, allowing the large language model (LLM) to set it to true in any tool_use response. Combined with the default allowUnsandboxedCommands: true setting, a prompt-injected model can escape the sandbox for any arbitrary command. This results in full host-level code execution on systems running OpenClaude prior to version 0.5.1. The flaw is categorized under [CWE-284] Improper Access Control.

Critical Impact

A prompt-injected LLM can disable the OpenClaude sandbox and execute arbitrary commands on the host with the privileges of the OpenClaude process.

Affected Products

  • Gitlawb OpenClaude versions prior to 0.5.1
  • OpenClaude deployments using default allowUnsandboxedCommands: true configuration
  • Any OpenClaude instance exposing the BashTool to untrusted model output

Discovery Timeline

  • 2026-06-02 - CVE-2026-42074 published to NVD
  • 2026-06-03 - Last updated in NVD database

Technical Details for CVE-2026-42074

Vulnerability Analysis

OpenClaude implements a sandbox to constrain commands executed through its BashTool. The tool's input schema, however, exposes the dangerouslyDisableSandbox boolean directly to the model. Because OpenClaude's own threat model treats the LLM as an untrusted principal, any schema field reachable by the model becomes attacker-controllable through prompt injection.

When an adversary delivers a prompt injection payload, the model can emit a tool_use response that sets dangerouslyDisableSandbox: true. The default configuration value allowUnsandboxedCommands: true permits the runtime to honor this flag without operator confirmation. The result is unrestricted command execution outside the sandbox, equivalent to running arbitrary shell commands as the user invoking OpenClaude.

Root Cause

The root cause is a broken trust boundary. Security-critical control parameters that should be operator-only were placed in the same input schema as model-controlled arguments. There is no server-side enforcement that strips or rejects dangerouslyDisableSandbox when supplied by the LLM. The permissive default allowUnsandboxedCommands: true compounds the issue by accepting the disable flag without challenge.

Attack Vector

An attacker delivers indirect prompt injection through any untrusted input the agent processes, including source files, web pages fetched by the agent, issue trackers, or repository README content. The injected instructions cause the model to invoke BashTool with dangerouslyDisableSandbox: true and a malicious command. OpenClaude executes the command unsandboxed, achieving remote, network-reachable code execution on the host.

No authentication or user interaction is required beyond the agent processing attacker-controlled content. For technical specifics, see the GitHub Security Advisory GHSA-m77w-p5jj-xmhg and the patch commit.

Detection Methods for CVE-2026-42074

Indicators of Compromise

  • OpenClaude audit logs containing tool_use entries where dangerouslyDisableSandbox is set to true.
  • Child processes spawned by the OpenClaude binary that bypass the expected sandbox wrapper or container boundary.
  • Unexpected outbound network connections, file writes outside the project directory, or credential access originating from the OpenClaude process.

Detection Strategies

  • Inspect OpenClaude session transcripts and tool-call logs for any occurrence of the dangerouslyDisableSandbox key in model-generated arguments.
  • Correlate BashTool invocations with the executed command string and parent agent context to flag unsandboxed shell activity.
  • Hunt for prompt-injection precursors such as agent reads from attacker-controlled URLs, untrusted issue content, or third-party repository files immediately preceding shell execution.

Monitoring Recommendations

  • Enable verbose tool-use logging in OpenClaude and forward logs to a central SIEM for retention and search.
  • Alert on process-tree anomalies where the OpenClaude process spawns shells, package managers, or network utilities outside an approved baseline.
  • Monitor filesystem and credential-store access by the OpenClaude user, including reads of ~/.ssh, cloud provider credential files, and shell history.

How to Mitigate CVE-2026-42074

Immediate Actions Required

  • Upgrade OpenClaude to version 0.5.1 or later, which removes dangerouslyDisableSandbox from the model-facing schema.
  • Audit existing OpenClaude deployments for the allowUnsandboxedCommands setting and set it to false where not explicitly required.
  • Review recent agent transcripts and host telemetry for evidence of sandbox-disabled tool calls prior to patching.

Patch Information

The issue is patched in OpenClaude 0.5.1. The fix removes the dangerouslyDisableSandbox parameter from the BashTool input schema so the LLM cannot supply it. Details are available in the GitHub Pull Request #778 and the patch commit aab4890.

Workarounds

  • Run OpenClaude inside an isolated container or virtual machine with no access to credentials, source repositories, or production networks.
  • Restrict the user account running OpenClaude to least privilege and deny write access to sensitive directories.
  • Disable or remove the BashTool entirely for workflows that do not require shell execution until the patched version is deployed.
bash
# Configuration example: upgrade and harden OpenClaude
npm install -g openclaude@0.5.1

# Verify installed version
openclaude --version

# Explicitly disable unsandboxed command execution
export OPENCLAUDE_ALLOW_UNSANDBOXED_COMMANDS=false

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechGitlawb Openclaude

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/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
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-284
  • Vendor Resources
  • GitHub Commit Note

  • GitHub Pull Request

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-42073: Gitlawb Openclaude Auth Bypass Flaw
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