Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-57169 Overview
Dockhand is a Docker management application that provides an in-browser container terminal for administrators. Versions prior to 1.0.34 expose the /api/containers/<id>/exec endpoint without enforcing authentication on the WebSocket upgrade request. An attacker with network access to the Dockhand instance and knowledge of a target container ID can open a raw WebSocket terminal session and execute commands inside that container. When the targeted container runs with sensitive bind mounts or privileged execution, the issue extends to host compromise. The missing authentication check is classified as [CWE-306]. The maintainers fixed the issue in version 1.0.34.
Critical Impact
Unauthenticated attackers with adjacent network access can execute arbitrary commands inside containers managed by Dockhand, with a direct path to host compromise against privileged containers.
Affected Products
- Dockhand versions prior to 1.0.34
- Dockhand container terminal WebSocket endpoint /api/containers/<id>/exec
- Deployments exposing Dockhand to any reachable network segment
Discovery Timeline
- 2026-10-16 - CVE-2026-57169 published to the National Vulnerability Database
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-57169
Vulnerability Analysis
Dockhand provides a browser-based interactive shell to containers through a WebSocket endpoint at /api/containers/<id>/exec. The WebSocket upgrade handler does not validate the caller's session or token before attaching the socket to a container exec stream. Any client that can reach the HTTP listener and supply a valid container identifier is attached directly to the container's standard input and output streams.
Once attached, the attacker executes shell commands as the container's runtime user. If the container runs as root, has the Docker socket mounted at /var/run/docker.sock, mounts host paths, or runs with --privileged, the attacker pivots from the container to the host. The weakness is tracked as Missing Authentication for Critical Function [CWE-306].
Root Cause
The root cause is the absence of an authentication middleware on the WebSocket upgrade path for the terminal exec endpoint. Authentication is enforced on the main HTTP API surface but was omitted from the socket handshake that establishes the exec channel, leaving the most sensitive capability in the application reachable without credentials.
Attack Vector
Exploitation requires network reachability to the Dockhand service and knowledge or enumeration of a container ID. Container IDs are 64-character hex strings but are often guessable, exposed in logs, or discoverable through other interfaces. The attacker connects to /api/containers/<id>/exec with a WebSocket client, bypassing the login flow entirely.
// Patch reference from Dockhand 1.0.34
+CREATE TABLE "template_sources" (
+ "id" serial PRIMARY KEY NOT NULL,
+ "source_id" text NOT NULL,
+ "name" text NOT NULL,
+ "url" text NOT NULL,
+ "enabled" boolean DEFAULT true,
+ "builtin" boolean DEFAULT false,
+ "sort_order" integer DEFAULT 0,
+ "created_at" timestamp DEFAULT now(),
+ "updated_at" timestamp DEFAULT now(),
+ CONSTRAINT "template_sources_source_id_unique" UNIQUE("source_id")
+);
// Source: https://github.com/Finsys/dockhand/commit/efb634701c55f80a8c752df8ae08d88f2c16cce9
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2026-57169
Indicators of Compromise
- WebSocket upgrade requests to /api/containers/<id>/exec without a preceding authenticated session or valid session cookie
- Unexpected docker exec child processes or interactive shells (/bin/sh, /bin/bash) spawned inside containers managed by Dockhand
- Outbound network connections, package installs, or reconnaissance commands originating from containers shortly after a terminal session opens
- New files or SUID binaries written under host bind mounts when the targeted container has host paths mounted
Detection Strategies
- Alert on HTTP Upgrade: websocket requests to /api/containers/*/exec from source IPs that have not completed login against Dockhand's auth endpoint
- Correlate Dockhand access logs with Docker daemon audit events to flag exec sessions created without a corresponding authenticated API call
- Monitor container runtime telemetry for interactive process trees that originate from the Dockhand service account rather than legitimate operators
Monitoring Recommendations
- Enable Docker daemon audit logging and forward events to a centralized log pipeline for correlation with reverse proxy logs
- Baseline the set of operators who legitimately use the Dockhand terminal and alert on sessions outside that baseline
- Track long-lived WebSocket connections to Dockhand and record source address, container ID, and session duration
How to Mitigate CVE-2026-57169
Immediate Actions Required
- Upgrade Dockhand to version 1.0.34 or later, which enforces authentication on the terminal WebSocket upgrade
- Restrict network access to Dockhand to administrative networks or a VPN until the upgrade is applied
- Rotate any credentials or secrets stored inside containers that were reachable through the vulnerable endpoint
- Audit container configurations and remove unnecessary --privileged flags, Docker socket mounts, and host bind mounts
Patch Information
The fix is included in Dockhand 1.0.34. See the GitHub Release v1.0.34, the GitHub Commit Details, and the GitHub Security Advisory GHSA-f6q3-chhc-4hxm for the authoritative details.
Workarounds
- Place Dockhand behind a reverse proxy that terminates TLS and enforces authentication on the /api/containers/*/exec path, including the WebSocket upgrade
- Bind the Dockhand listener to 127.0.0.1 and tunnel administrative access through SSH port forwarding
- Apply network ACLs or host firewall rules that deny inbound connections to the Dockhand port from untrusted segments
# Example nginx snippet to require auth on the exec WebSocket path
location ~ ^/api/containers/.*/exec$ {
auth_request /_auth;
proxy_pass http://127.0.0.1:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

