Dokploy: Authenticated Command Injection via unescaped backup.prefix in database/service backup commands leads to RCE as root
- State
- Published
- Severity
- 9.9 Critical
- Published
- Nov 18, 2026
- Updated
- Nov 19, 2026
- Reserved
- Nov 16, 2026
Description
Dokploy is a free, self-hostable Platform as a Service (PaaS). Prior to 0.31.1, the backup prefix field is only checked for a nonempty value, and normalizeS3Path preserves shell metacharacters before the prefix is interpolated into rclone upload and retention-cleanup command strings. An authenticated organization member with backup permission for a service can execute arbitrary commands as root on the Dokploy host or configured remote server when a PostgreSQL, MySQL, MariaDB, MongoDB, libSQL, Compose, or web-server backup runs manually, on schedule, or performs retention cleanup. This issue is fixed in version 0.31.1.
| Product | Versions |
|---|---|
| dokploy Dokploy | < 0.31.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 9.9 Critical | GitHub_M |
Weaknesses
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.