Dokploy Command Injection Vulnerability Allowing Arbitrary OS Command Execution

Vulnerability

A command injection vulnerability has been identified in Dokploy, a self-hostable Platform as a Service (PaaS) for application and database management. This vulnerability affects versions prior to 0.23.6. It allows authenticated, low-privileged users to execute arbitrary operating system commands on the Dokploy host. The issue arises in the tRPC procedure 'docker.getContainersByAppNameMatch', where the 'appName' parameter is interpolated into a Docker CLI command without proper sanitization. This exploitation occurs under the Dokploy service account.

Impact

Exploitation of this vulnerability allows for arbitrary OS command execution on the Dokploy host.

Reproduction

To reproduce this vulnerability, an authenticated user must send a request to the 'docker.getContainersByAppNameMatch' procedure with a crafted 'appName' value that includes malicious commands. The lack of input validation allows the injected commands to be executed on the host system via the Docker CLI.

Remediation

Users can upgrade to Dokploy version 0.23.7 to address this vulnerability.

Added: Jul 7, 2025, 4:24 PM
Updated: Jul 7, 2025, 4:24 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
10.0
exploitability
6.3
remediation
7.7
relevance
0.2
threat
4.9
urgency
2.9
incentive
1.7

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