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

CVE-2026-22682: OpenHarness Auth Bypass Vulnerability

CVE-2026-22682 is an authentication bypass flaw in OpenHarness that allows attackers to read arbitrary local files and bypass permission controls. This article covers technical details, affected versions, and mitigations.

Published: April 10, 2026

CVE-2026-22682 Overview

OpenHarness prior to commit 166fcfe contains an improper access control vulnerability in built-in file tools due to inconsistent parameter handling in permission enforcement. This vulnerability allows attackers who can influence agent tool execution to read arbitrary local files outside the intended repository scope.

The vulnerability stems from the path parameter not being passed to the PermissionChecker in read_file, write_file, edit_file, and notebook_edit tools. This enables attackers to bypass deny rules and access sensitive files such as configuration files, credentials, and SSH material. In full_auto mode, attackers can also create and overwrite files in restricted host paths.

Critical Impact

Attackers can bypass permission enforcement to access sensitive configuration files, credentials, SSH keys, and potentially create or overwrite files in restricted host paths when full_auto mode is enabled.

Affected Products

  • OpenHarness versions prior to commit 166fcfefb7614dbac51bd061f56542725b0298e9
  • Systems using OpenHarness built-in file tools (read_file, write_file, edit_file, notebook_edit)
  • OpenHarness deployments operating in full_auto mode

Discovery Timeline

  • 2026-04-07 - CVE-2026-22682 published to NVD
  • 2026-04-08 - Last updated in NVD database

Technical Details for CVE-2026-22682

Vulnerability Analysis

This improper access control vulnerability (CWE-863) exists due to inconsistent parameter handling within the permission enforcement mechanism of OpenHarness's built-in file tools. The core issue lies in how the PermissionChecker.evaluate() function receives tool input parameters when determining whether a file operation should be allowed or denied.

When file tools such as read_file, write_file, edit_file, and notebook_edit are invoked, the permission checking logic extracts the file path using a specific parameter name (file_path). However, certain tools pass the path using a different parameter name (path), which is not recognized by the extraction logic. This discrepancy results in a None value being passed to the permission checker, effectively bypassing any path-based deny rules configured by administrators.

The vulnerability is particularly dangerous in environments where OpenHarness operates in full_auto mode, as it enables not only unauthorized file reads but also file creation and modification in restricted paths. This could allow attackers to exfiltrate sensitive data including credentials, SSH keys, and configuration files, or to establish persistence by writing malicious files to the host system.

Root Cause

The root cause is inconsistent parameter name handling in the permission enforcement logic within src/openharness/engine/query.py. The original code extracted file paths using only the file_path parameter key, while some built-in tools pass paths using the path parameter. This parameter name mismatch causes the permission checker to receive a null file path value, bypassing all path-based access control rules.

Attack Vector

Attackers with the ability to influence agent tool execution can exploit this vulnerability by invoking file tools with paths targeting sensitive files outside the intended repository scope. The attack requires local access and low privileges, but requires no user interaction. By targeting files like /etc/passwd, .ssh/id_rsa, or application configuration files containing secrets, attackers can extract sensitive information or, in write scenarios, modify critical system files.

python
             is_error=True,
         )
 
-    # Extract file_path and command for path-level permission checks
-    _file_path = str(tool_input.get("file_path", "")) or None
-    _command = str(tool_input.get("command", "")) or None
+    # Normalize common tool inputs before permission checks so path rules apply
+    # consistently across built-in tools that use either `file_path` or `path`.
+    _file_path = _resolve_permission_file_path(context.cwd, tool_input, parsed_input)
+    _command = _extract_permission_command(tool_input, parsed_input)
     decision = context.permission_checker.evaluate(
         tool_name,
         is_read_only=tool.is_read_only(parsed_input),

Source: GitHub Commit Update

Detection Methods for CVE-2026-22682

Indicators of Compromise

  • File access attempts targeting sensitive system files (e.g., /etc/passwd, .ssh/id_rsa, application configuration files) from OpenHarness agent processes
  • Unexpected file operations in restricted directories outside the designated repository scope
  • Agent tool execution logs showing read_file, write_file, edit_file, or notebook_edit operations with paths outside expected boundaries
  • New or modified files appearing in restricted host paths when full_auto mode is enabled

Detection Strategies

  • Implement file integrity monitoring (FIM) on sensitive directories to detect unauthorized access or modifications
  • Monitor OpenHarness agent logs for file tool invocations with absolute paths or path traversal sequences (e.g., ../)
  • Configure audit logging for file system operations performed by the OpenHarness process user
  • Deploy application-layer logging to capture all PermissionChecker.evaluate() calls and their results

Monitoring Recommendations

  • Enable verbose logging for OpenHarness file tool operations and regularly review for anomalous path access patterns
  • Set up alerting for file operations targeting well-known sensitive file paths such as SSH keys, credentials, and system configuration files
  • Monitor for process activity indicating bulk file reads or writes that may indicate data exfiltration attempts
  • Implement network monitoring for unusual data transfers originating from systems running OpenHarness

How to Mitigate CVE-2026-22682

Immediate Actions Required

  • Update OpenHarness to commit 166fcfefb7614dbac51bd061f56542725b0298e9 or later immediately
  • Review system logs for evidence of unauthorized file access attempts prior to patching
  • Audit any systems that have been running OpenHarness in full_auto mode for unauthorized file modifications
  • Rotate any credentials or SSH keys that may have been exposed on affected systems

Patch Information

The vulnerability is fixed in commit 166fcfefb7614dbac51bd061f56542725b0298e9. The patch introduces two new helper functions (_resolve_permission_file_path and _extract_permission_command) that normalize tool input parameters before permission checks. This ensures path-based rules apply consistently across all built-in tools regardless of whether they use file_path or path as the parameter name.

For detailed patch information, see the GitHub Pull Request and the VulnCheck Advisory.

Workarounds

  • Disable full_auto mode until the patch can be applied to prevent unauthorized file writes
  • Restrict the OpenHarness process to run under a dedicated user account with minimal file system permissions
  • Implement additional access controls at the operating system or container level to limit file access scope
  • Deploy network segmentation to isolate OpenHarness instances from sensitive systems containing credentials or configuration data
bash
# Configuration example
# Run OpenHarness with restricted file system access using a dedicated user
# Create a restricted user for OpenHarness
sudo useradd -r -s /bin/false openharness-runner

# Set restrictive permissions on sensitive directories
sudo chmod 700 /root/.ssh
sudo chmod 600 /root/.ssh/*

# Run OpenHarness with the restricted user
sudo -u openharness-runner openharness --mode=supervised

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechOpenharness

  • SeverityHIGH

  • CVSS Score8.4

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/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
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-863
  • Technical References
  • GitHub Commit Update

  • GitHub Pull Request

  • VulnCheck Advisory on OpenHarness
  • Related CVEs
  • CVE-2026-40516: OpenHarness SSRF Vulnerability

  • CVE-2026-40503: OpenHarness Path Traversal Vulnerability

  • CVE-2026-40502: OpenHarness Command Injection 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