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. Unauthenticated Root RCE in AutoAgent's Sandbox TCP Server
Unauthenticated Root RCE in AutoAgent's Sandbox TCP Server

Critical Security Alert

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

SECURITYCRITICALCVE-2026-86124

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

Dylan H.

Security Team

September 6, 2026
5 min read

Affected Products

  • HKUDS AutoAgent (sandbox TCP command server, all deployments exposing the default port)

Executive Summary

A critical unauthenticated remote code execution vulnerability (CVE-2026-86124) has been disclosed in AutoAgent, the HKUDS open-source AI agent framework. The flaw sits in AutoAgent's sandbox TCP command server, which binds to 0.0.0.0 and executes any command it receives as root, without any form of authentication or authorization check.

CVSS Score: 9.8 (Critical) under CVSS 3.1; a CVSS 4.0 score of 9.3 has also been reported by other trackers.

Any host that can reach the exposed TCP port can send arbitrary bash commands and have them executed inside the AutoAgent sandbox container as root — including read/write access to any bind-mounted host workspace directories.


Vulnerability Overview

AttributeValue
CVE IDCVE-2026-86124
CVSS Score9.8 (Critical) / CVSS 4.0: 9.3
TypeMissing Authentication for Critical Function → Remote Code Execution
Attack VectorNetwork (no authentication required)
Privileges RequiredNone
User InteractionNone
Vendor / ProductHKUDS / AutoAgent
Disclosed viaVulnCheck advisory — "AutoAgent Unauthenticated Remote Code Execution via the Sandbox TCP Command Server"
Published2026-09-05

Technical Details

AutoAgent's sandbox environment spins up a Docker container to isolate agent-executed code, and communicates with that container through a lightweight TCP command server. Two design decisions in that server compound into full root RCE:

  1. tcp_server.py — the TCP listener binds to 0.0.0.0 (all network interfaces) and accepts inbound connections with no authentication or authorization check whatsoever. Any client that can open a TCP connection to the port can submit shell commands for execution.
  2. docker_env.py — the sandbox container itself is launched with docker run --user root, and the command port is published with -p, exposing it on 0.0.0.0 at the host level as well.

Together, these mean a remote, unauthenticated attacker who can reach the published port can execute arbitrary bash commands as root inside the container — and, because AutoAgent sandboxes typically bind-mount a host workspace directory in for agent file access, that access can extend to files outside the container itself.

1. Attacker scans for hosts exposing the AutoAgent TCP command port
2. Attacker opens a raw TCP connection — no credentials, tokens, or handshake required
3. Attacker sends a bash command payload
4. Command server executes the payload as root inside the sandbox container
5. Attacker pivots via bind-mounted host directories or lateral network access

Impact of Successful Exploitation

ImpactDescription
Remote Code ExecutionArbitrary shell commands executed as root
Host Workspace CompromiseRead/write access to bind-mounted host directories
Container Escape RiskRoot-in-container plus permissive Docker flags raises escape risk
Data ExfiltrationAccess to any secrets, source, or data mounted into the sandbox
Lateral MovementPivot point into the broader host network if the port is internet-facing

Immediate Remediation

No official patched release was confirmed at the time of publication. Until a fix ships, mitigate at the deployment layer:

Step 1: Take the Port Off the Public Network

# Never publish the sandbox command port on 0.0.0.0.
# Bind it to localhost only, or drop the -p flag entirely if the
# container doesn't need external reachability.
docker run --rm -p 127.0.0.1:<port>:<port> autoagent-sandbox

Step 2: Restrict at the Firewall / Security Group

# Block the AutoAgent TCP command port from any interface other than loopback
sudo ufw deny in on eth0 to any port <port> proto tcp

Step 3: Stop Running the Sandbox as Root

Remove --user root from the docker run invocation in docker_env.py (or the equivalent deployment config) and run the sandbox under a non-privileged UID with the minimum filesystem permissions the agent actually needs.

Step 4: Front the Command Server With Authentication

If the TCP server must be reachable beyond localhost, put it behind mutual TLS or a token-based auth proxy — do not rely on network segmentation alone.

If Immediate Mitigation Isn't Possible

  1. Do not expose AutoAgent sandboxes to any untrusted network, including shared internal networks.
  2. Audit existing deployments for the port being reachable from outside the host.
  3. Monitor for unexpected inbound TCP connections to the sandbox port and unexpected process spawns inside the container.

Detection Indicators

IndicatorDescription
Inbound TCP connections to the sandbox command port from unfamiliar sourcesPossible exploitation attempt
Unexpected root-owned processes inside the sandbox containerCommand execution via the TCP server
Unexpected writes to bind-mounted host directoriesPost-exploitation host access
docker run invocations with --user root and a published portVulnerable configuration in use

References

  • VulnCheck — AutoAgent Unauthenticated Remote Code Execution via the Sandbox TCP Command Server
  • NIST NVD — CVE-2026-86124
  • OffSeq Threat Radar — CVE-2026-86124

Related Reading

  • Cua Computer-Server Unauthenticated RCE (CVE-2026-86121)
  • WordPress Plugin Vulnerability (CVSS 10.0) Under Active
#CVE-2026-86124#AutoAgent#AI Agents#RCE#Container Security#Docker

Related Articles

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

4 min read

CVE-2026-61515: Puwell IP Camera Unauthenticated Command Injection

A critical unauthenticated command injection vulnerability in Puwell IP Camera firmware 2.x through 4.x allows remote attackers to execute arbitrary OS commands as root via the device's exposed DebugShell interface on TCP port 34567. No patch is available.

7 min read

CVE-2026-36576: Critical OS Command Injection in docker-wkhtmltopdf-aas

A CVSS 9.8 OS command injection vulnerability in openlabs docker-wkhtmltopdf-aas allows unauthenticated remote code execution via a crafted POST request to…

2 min read
Back to all Security Alerts