A Prophet Community author reproduced CVE-2026-138077: unauthenticated RCE in the AgentDock runtime management interface exposed via a proxy
CVE-2026-138077 AgentDock 运行时管理接口未授权 RCE 漏洞复现与分析
The author reproduced the unauthenticated RCE vulnerability CVE-2026-138077 in the AgentDock runtime management interface: after a local port is exposed to the public internet via a bare reverse proxy or other means, external requests can execute commands without authorization. The cause is that when authentication is not configured, the interface by default trusts requests originating from 127.0.0.1, while nginx's default reverse proxy rewrites the request source to the loopback address, which exactly satisfies the allow criterion. Affected versions are 1.1.1 and earlier; 1.2.0 fixes it; CVSS 3.1 score is 7.3. The author registered a stdio-type MCP service and triggered refresh to launch a child process, executing commands as the process owner; with passwordless sudo, this can further read /etc/shadow as root; without passwordless sudo, the runtime keys and MCP connection parameters can still be read, and after malicious configuration is written to servers.json, it remains effective after restart.
The original source fully reproduced the exploit chain from a bare reverse proxy to unauthenticated command execution, and verified that the authentication gate does not take effect when only the version is upgraded without configuring an external address.