CVE-2026-25807: Unauthenticated Remote Code Execution via P2P Sharing in ZAI-Shell
ZAI Shell is an autonomous SysOps agent designed to navigate, repair, and secure complex environments. Prior to 9.0.3, the P2P terminal sharing feature (share start) opens a TCP socket on port 5757 without any authentication mechanism. Any remote attacker can connect to this port using a simple socket script. An attacker who connects to a ZAI-Shell P2P session running in --no-ai mode can send arbitrary system commands. If the host user approves the command without reviewing its contents, the command executes directly with the user's privileges, bypassing all Sentinel safety checks. This vulnerability is fixed in 9.0.3.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2026-25807?
CVE-2026-25807 has a high severity due to its potential for unauthenticated remote code execution.
How do I fix CVE-2026-25807?
To fix CVE-2026-25807, upgrade ZAI Shell to version 9.0.3 or later, which addresses the vulnerability.
What causes CVE-2026-25807?
CVE-2026-25807 is caused by the P2P terminal sharing feature opening a TCP socket on port 5757 without any authentication.
Who is affected by CVE-2026-25807?
Users of ZAI Shell versions prior to 9.0.3 are affected by CVE-2026-25807.
Can CVE-2026-25807 be exploited remotely?
Yes, CVE-2026-25807 can be exploited remotely due to its unauthenticated nature.