Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

2685+ Articles
165+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. Security
  3. Cua Computer-Server Auth Bypass Enables Unauthenticated RCE
Cua Computer-Server Auth Bypass Enables Unauthenticated RCE

Critical Security Alert

This vulnerability is actively being exploited. Immediate action is recommended.

SECURITYCRITICALCVE-2026-86121

Cua Computer-Server Auth Bypass Enables Unauthenticated RCE

Cua computer-server before v0.3.42 skips authentication when a container name env var is unset and binds to all interfaces, exposing desktop...

Dylan H.

Security Team

September 6, 2026
4 min read

Affected Products

  • trycua computer-server ≤ 0.3.41

Executive Summary

A critical authentication bypass vulnerability (CVE-2026-86121) has been disclosed in Cua computer-server, the trycua project's server component for programmatic desktop/computer control. Versions before 0.3.42 skip authentication entirely when the CONTAINER_NAME environment variable is unset, and bind to all network interfaces by default — combining into unauthenticated remote code execution.

CVSS Score: 9.8 (Critical) under CVSS 3.1; CVSS 4.0 score of 9.3.

The flaw was reported by researcher George Chen via GitHub Issue #1892 and disclosed with VulnCheck as the assigning CNA. A fix shipped in v0.3.42.


Vulnerability Overview

AttributeValue
CVE IDCVE-2026-86121
CVSS Score9.8 (Critical) / CVSS 4.0: 9.3
TypeMissing Authentication for Critical Function
Attack VectorNetwork (no authentication required)
Privileges RequiredNone
User InteractionNone
Reported ByGeorge Chen (GitHub Issue #1892)
Fixed Version0.3.42 (commit 59cf25c0ec54)

Technical Details

Cua computer-server exposes desktop-control functionality — running shell commands, reading/writing files, and opening interactive PTY shells — over an HTTP API on TCP port 8000. Two compounding flaws remove the intended access controls:

  1. Silent auth bypass — in Server.auth (main.py), authentication is skipped entirely ("allow-all") whenever the CONTAINER_NAME environment variable is unset at startup. Any deployment that doesn't explicitly set this variable runs with no authentication.
  2. Permissive default bind address — the CLI's --host flag (cli.py) defaults to 0.0.0.0, publishing the API on every network interface rather than restricting it to localhost.

Combined, an unauthenticated attacker who can reach port 8000 can:

  • Execute arbitrary shell commands via the run_command endpoint
  • Read and write arbitrary files through the file-operation endpoints
  • Open interactive PTY shells on the host running the server
1. Attacker locates a Cua computer-server instance reachable on TCP/8000
2. Server was started without CONTAINER_NAME set → auth check allows all requests
3. Attacker calls run_command / file endpoints directly, no credentials needed
4. Full command execution and file access on the underlying system

Impact of Successful Exploitation

ImpactDescription
Remote Code ExecutionArbitrary shell commands via run_command
Arbitrary File Read/WriteFull access through file-operation endpoints
Interactive Shell AccessPTY endpoint grants a live remote shell
Desktop/Automation HijackAny agent or automation using this server for computer control can be hijacked

Remediation

Step 1: Update Immediately

pip install --upgrade cua-computer-server
# Confirm the version
python -m cua_computer_server --version

Upgrade to v0.3.42 or later, which fixes the auth bypass and changes the default bind address to 127.0.0.1.

Step 2: Always Set CONTAINER_NAME

Even after patching, explicitly set the CONTAINER_NAME environment variable in every deployment — do not rely on defaults.

Step 3: Bind to Localhost Unless Remote Access Is Required

cua-computer-server --host 127.0.0.1

If remote access is genuinely required, place the server behind a VPN or an authenticating reverse proxy — never expose port 8000 directly to an untrusted network.

Step 4: Audit Existing Deployments

# Check whether the port is reachable from outside localhost
nmap -p 8000 <host>
 
# Confirm CONTAINER_NAME is set in the running environment
docker exec <container> printenv CONTAINER_NAME

Detection Indicators

IndicatorDescription
Inbound connections to TCP/8000 from unexpected sourcesPossible exploitation attempt
run_command or file-endpoint calls with no auth header/tokenExploitation of the auth bypass
New PTY sessions opened without a corresponding legitimate user actionInteractive shell abuse
Server processes started without CONTAINER_NAME setVulnerable configuration in use

References

  • VulnCheck / TheHackerWire — Cua Computer-Server Unauthenticated RCE (CVE-2026-86121)
  • NIST NVD — CVE-2026-86121
  • OffSeq Threat Radar — CVE-2026-86121

Related Reading

  • Unauthenticated Root RCE in AutoAgent's Sandbox TCP Server
#CVE-2026-86121#Cua#AI Agents#RCE#Authentication Bypass#Desktop Automation

Related Articles

Unauthenticated Root RCE in AutoAgent's Sandbox TCP Server

AutoAgent's sandbox TCP command server binds to all interfaces with no authentication, letting anyone execute root shell commands inside the...

5 min read

Docker Windows Containers: Native Engine Setup Guide

Deploy Docker Engine natively on Windows without Docker Desktop. Covers installation, Windows container mode, lifecycle management, and troubleshooting.

6 min read

Building Desktop Apps with Electron and Next.js

Create cross-platform desktop applications by combining Electron for native capabilities with Next.js for the UI. Covers IPC communication, system tray,...

5 min read
Back to all Security Alerts