Authentication Bypass in Cua computer-server via Environment Variable Misconfiguration
Cua computer-server versions prior to 0.3.42 contain an authentication bypass vulnerability triggered when the CONTAINER_NAME environment variable is unset, allowing unauthenticated remote command execution on TCP port 8000.
CVE search metadata
CVE search record: CVE-2026-86121. Severity: critical. CVSS: 9.8. KEV: no. Product: computer-server (< 0.3.42). Brief: Authentication Bypass in Cua computer-server via Environment Variable Misconfiguration. Brief link: https://feed.craftedsignal.io/briefs/2026-09-cua-authentication-bypass/
Cua computer-server versions before 0.3.42 suffer from a critical authentication bypass vulnerability. When the application environment is deployed without the CONTAINER_NAME environment variable, the service fails to initialize authentication mechanisms and defaults to binding on all network interfaces. This exposure allows unauthenticated remote actors to interact directly with the application's sensitive API endpoints on TCP port 8000. Successful exploitation provides unauthorized access to the run_command endpoint, enabling arbitrary command execution, unrestricted file system read and write operations, and the ability to initiate interactive PTY shell sessions. Given the service's default network-wide exposure and the severity of the impacted operations, this vulnerability poses a severe risk to host integrity and data confidentiality.
Attack Chain
- Attacker performs network discovery to identify services listening on TCP port 8000.
- Attacker probes the discovered target to confirm the presence of the Cua computer-server service.
- Attacker identifies a misconfigured instance where the CONTAINER_NAME environment variable is missing.
- Attacker sends an unauthenticated HTTP request to the /run_command endpoint.
- The application skips authentication due to the missing environment variable check.
- Attacker executes arbitrary system commands with the privileges of the application process.
- Attacker initiates an interactive PTY shell or performs file read/write operations for exfiltration or persistence.
Impact
Successful exploitation allows unauthenticated remote attackers to achieve full system compromise. Impact includes arbitrary command execution with application-level privileges, unauthorized access to system files, and the establishment of interactive shell sessions. This can lead to complete data exfiltration, lateral movement within the network, or the deployment of persistent malware.
Recommendation
- Upgrade Cua computer-server to version 0.3.42 or later immediately to resolve the authentication initialization defect.
- Audit all running instances of Cua computer-server to verify the presence of the CONTAINER_NAME environment variable.
- Implement network-level segmentation to restrict access to TCP port 8000 to only trusted management subnets until patching is completed.
- Monitor webserver logs for HTTP requests directed to the /run_command endpoint from unauthorized IP addresses.
Immediate actions
Upgrade Cua computer-server to 0.3.42 or later
Threat Hunt
Unauthorized access to /run_command endpoint
Data: Web server logs
Mitigations
Restrict access to TCP port 8000
CVE-2026-86121
Detection coverage 1
Detect CVE-2026-86121 Exploitation - Unauthorized Access to /run_command
criticalDetects unauthenticated access attempts to the sensitive /run_command endpoint on Cua computer-server.
Detection queries are available on the platform. Get full rules →