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
    • 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-25807

CVE-2026-25807: ZAI Shell RCE Vulnerability

CVE-2026-25807 is a remote code execution vulnerability in ZAI Shell that allows unauthenticated attackers to execute arbitrary commands. This article covers technical details, affected versions, impact, and mitigation.

Published: February 13, 2026

CVE-2026-25807 Overview

CVE-2026-25807 is a command injection vulnerability in ZAI Shell, an autonomous SysOps agent designed to navigate, repair, and secure complex environments. Prior to version 9.0.3, the P2P terminal sharing feature (share start) opens a TCP socket on port 5757 without any authentication mechanism, allowing remote attackers to connect and inject arbitrary system commands.

Critical Impact

Remote attackers can execute arbitrary commands with user privileges by exploiting the unauthenticated P2P terminal sharing feature, potentially leading to complete system compromise.

Affected Products

  • ZAI Shell versions prior to 9.0.3
  • Systems with P2P terminal sharing enabled (share start)
  • Instances running in --no-ai mode

Discovery Timeline

  • 2026-02-09 - CVE-2026-25807 published to NVD
  • 2026-02-10 - Last updated in NVD database

Technical Details for CVE-2026-25807

Vulnerability Analysis

This vulnerability stems from a fundamental authentication flaw in ZAI Shell's P2P terminal sharing implementation. When users initiate a terminal sharing session using the share start command, the application opens a TCP socket on port 5757 that accepts connections without requiring any form of authentication or authorization.

The attack requires network access to the vulnerable port and some user interaction. Specifically, when ZAI Shell operates in --no-ai mode, an attacker who connects to the P2P session can submit arbitrary system commands. If the legitimate host user approves these commands without reviewing their contents, the commands execute with the user's full privileges.

The vulnerability is classified as CWE-94 (Improper Control of Generation of Code), indicating that the application fails to properly validate or restrict the commands that can be injected through the P2P sharing mechanism. This effectively bypasses all Sentinel safety checks that would normally prevent unauthorized command execution.

Root Cause

The root cause of CVE-2026-25807 lies in the design decision to implement P2P terminal sharing without implementing proper authentication controls on the TCP socket listener. The share start functionality exposes port 5757 to network connections, treating all incoming connections as legitimate participants without verifying their identity or authorization status.

Additionally, the --no-ai mode disables AI-based safety controls that might otherwise detect and prevent malicious command patterns, creating a direct path for command injection when combined with user approval of unreviewed commands.

Attack Vector

The attack vector for this vulnerability is network-based and follows a multi-stage exploitation process:

  1. Reconnaissance: The attacker identifies systems running ZAI Shell with active P2P terminal sharing sessions by scanning for open port 5757.

  2. Connection: Using a simple socket script or network tool, the attacker establishes a connection to the exposed TCP port without any authentication challenge.

  3. Command Injection: The attacker submits malicious system commands through the established connection.

  4. Execution: When the legitimate host user approves the command queue without careful review, the injected commands execute with the user's privileges.

The attack is particularly dangerous in environments where users routinely approve pending commands without thorough inspection, which is common in high-volume operations scenarios. The vulnerability can be exploited to achieve remote code execution, data exfiltration, lateral movement, or persistent access.

Detection Methods for CVE-2026-25807

Indicators of Compromise

  • Unexpected network connections to TCP port 5757 from unknown IP addresses
  • Unusual command patterns or system commands in ZAI Shell logs that were not initiated by legitimate users
  • Process execution anomalies originating from ZAI Shell parent processes
  • Evidence of reconnaissance or port scanning activity targeting port 5757

Detection Strategies

  • Deploy network monitoring to detect and alert on connections to port 5757 from unauthorized sources
  • Implement log analysis rules to identify command injection patterns or suspicious command sequences in ZAI Shell audit logs
  • Use endpoint detection solutions to monitor for unexpected child processes spawned by ZAI Shell
  • Configure firewall rules to log and alert on attempts to access port 5757

Monitoring Recommendations

  • Establish baseline network behavior for systems running ZAI Shell and alert on deviations
  • Enable verbose logging for ZAI Shell sessions, particularly when P2P sharing is active
  • Monitor for multiple failed or unusual connection attempts to the P2P sharing port
  • Implement real-time alerting for command execution events that bypass normal approval workflows

How to Mitigate CVE-2026-25807

Immediate Actions Required

  • Upgrade ZAI Shell to version 9.0.3 or later immediately
  • Disable P2P terminal sharing (share start) on affected systems until patching is complete
  • Block external access to TCP port 5757 using firewall rules
  • Avoid using --no-ai mode in production environments until the patch is applied
  • Review recent command history for any suspicious or unauthorized activity

Patch Information

The vulnerability has been fixed in ZAI Shell version 9.0.3. The patch addresses the authentication bypass by implementing proper access controls on the P2P terminal sharing socket. Organizations should update to this version immediately.

For detailed information on the fix, refer to the GitHub Commit and the GitHub Release v9.0.3. The GitHub Security Advisory GHSA-6pjj-r955-34rr provides additional technical details.

Workarounds

  • Disable the P2P terminal sharing feature entirely by avoiding the share start command
  • Implement network-level access controls to restrict port 5757 to trusted IP addresses only
  • Always operate ZAI Shell with AI safety controls enabled (avoid --no-ai mode)
  • Implement strict command review policies where users must manually inspect all pending commands before approval
bash
# Firewall configuration to block external access to ZAI Shell P2P port
# For iptables-based systems
iptables -A INPUT -p tcp --dport 5757 -s 127.0.0.1 -j ACCEPT
iptables -A INPUT -p tcp --dport 5757 -j DROP

# For firewalld-based systems
firewall-cmd --permanent --add-rich-rule='rule family="ipv4" port port="5757" protocol="tcp" reject'
firewall-cmd --reload

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechZai Shell

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.11%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • GitHub Commit Update

  • GitHub Release v9.0.3

  • GitHub Security Advisory GHSA-6pjj-r955-34rr
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal 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