Dokploy Command Injection Vulnerability in WebSocket Endpoint Allowing Remote Code Execution

Vulnerability

A command injection vulnerability has been identified in Dokploy versions through 0.26.6. This issue resides in the '/docker-container-logs' WebSocket endpoint, where the 'tail' and 'since' parameters are improperly validated. Authenticated users can exploit this flaw by injecting commands that are executed with root privileges. The vulnerability arises because the parameters are directly concatenated into shell commands without any validation, allowing for arbitrary command execution.

Impact

Exploitation of this vulnerability allows authenticated users to execute arbitrary commands as root, potentially leading to full system compromise. Additionally, there is a risk of escaping from the Docker container, as the Docker socket is mounted.

Reproduction

To reproduce this vulnerability, connect to the '/docker-container-logs' WebSocket endpoint with an authenticated session. Send a payload that includes a command injection in the 'tail' parameter, such as '10; whoami; #'. The injected command will be executed with root privileges, and the response can be read from the WebSocket connection.

Remediation

Users can block the vulnerable WebSocket endpoint using Nginx or restrict access to the internal network. A patch will be included in Dokploy version 0.26.7.

Added: May 29, 2026, 6:29 PM
Updated: May 29, 2026, 6:29 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
10.0
exploitability
6.6
remediation
0.0
relevance
9.3
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.