CVE-2026-129986: Dokploy: OS Command Injection via filePath in mount.deleteFileMount → HOST RCE
Dokploy is a free, self-hostable Platform as a Service (PaaS). Prior to 0.31.1, mount.deleteFileMount passes a path containing the user-controlled filePath to the local removeFileOrDirectory helper, which interpolates it unquoted into rm -rf, while the remote branch is quoted. An authenticated member with file-mount create and delete permissions can execute arbitrary commands in the host context immediately when deleting a local file mount, without requiring a running container. This issue is fixed in version 0.31.1.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 0.31.1
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated Dokploy member needs permissions to create and delete file mounts. Exploitation occurs when that member deletes a local file mount.
Is a running container required for exploitation?
No. Arbitrary commands can be executed in the host context immediately on deletion of a local file mount, without a running container.
Which deployments are affected?
Dokploy versions prior to 0.31.1 are affected where users have the required file-mount create and delete permissions. The vulnerable behavior is in the local file-mount deletion path; the remote branch is quoted.
What is the available remediation?
Upgrade Dokploy to version 0.31.1, which fixes the issue.