Summary
Dokploy versions prior to 0.31.1 do not sanitize the backup prefix field, allowing an authenticated organization member with backup permission to run arbitrary commands as root. The source rates it critical with a CVSS score of 9.9 and states it is fixed in version 0.31.1.
What happened
Dokploy is a free, self-hostable Platform as a Service (PaaS). According to the source, the backup prefix field is only checked for a nonempty value, and the normalizeS3Path function preserves shell metacharacters. The prefix is then interpolated into the rclone command strings used for uploads and retention cleanup. An authenticated organization member with backup permission for a service can execute arbitrary commands as root on the Dokploy host or on the configured remote server. This occurs when a PostgreSQL, MySQL, MariaDB, MongoDB, libSQL, Compose, or web-server backup runs manually, on schedule, or performs retention cleanup. The weakness is classified as CWE-78 (OS command injection).
Why it matters
The CVSS v3.1 score is 9.9 (critical), with vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H, assigned by CNA:GitHub_M. It requires low-privilege authentication and can affect confidentiality, integrity and availability, with a changed scope. CISA's KEV catalog does not list known exploitation; the source does not state evidence of active exploitation.
Affected products and versions
Dokploy (vendor: Dokploy), versions prior to 0.31.1 (< 0.31.1).
| Product | Versions | Fixed in |
|---|---|---|
| Dokploy dokploy | < 0.31.1 | — |
Action recommended by the source
The vendor states the issue is fixed in version 0.31.1 and recommends upgrading to it or a later release. References from the source: advisory GHSA-2gq3-9q77-8hgv, pull request 5908, the corresponding commit, and the v0.31.1 release in Dokploy's GitHub repository. The source does not mention other mitigations.
Sources and references
- https://github.com/Dokploy/dokploy/security/advisories/GHSA-2gq3-9q77-8hgv — CVE Program
- https://github.com/Dokploy/dokploy/pull/5908 — CVE Program
- https://github.com/Dokploy/dokploy/commit/549cdada79a8ddf9bd9d1f153159626d050b4b6a — CVE Program
- https://github.com/Dokploy/dokploy/releases/tag/v0.31.1 — CVE Program
Weaknesses (CWE): CWE-78
Relevant change history
Published
Advisory published.