Executive brief
Dokploy is a self-hosted Platform-as-a-Service that allows teams to deploy and manage applications without vendor lock-in. An authenticated user with backup read permissions could exploit improper input sanitization in the backup file listing feature to execute arbitrary system commands on the Dokploy server, potentially leading to complete system compromise.
Technical details
This is an OS command injection vulnerability in the backup.listBackupFiles tRPC endpoint (apps/dokploy/server/api/routers/backup.ts). The search parameter is passed through normalizeS3Path and directly interpolated into an rclone lsjson command executed via child_process.exec() without proper escaping. An authenticated attacker with backup:read permission can inject shell metacharacters (such as $(), backticks, quotes) to break out of the rclone command context and execute arbitrary commands. The fix in version 0.29.13 wraps all S3 credential flags, search paths, and backup file paths with shell-quote's quote() function to prevent command injection.
Affected products
- Dokploy Dokploy before 0.29.13
Timeline
- 2026-08-10: disclosed: CVE-2026-72738 published
- 2026-07-20: patched: Security fix committed (v0.29.13 released 2026-07-21)