Summary
Dokploy versions prior to 0.31.1 do not sanitize the Nixpacks publishDirectory build setting, allowing an authenticated user to run arbitrary commands on the host. The vulnerability is rated critical (CVSS 3.1: 9.9) and is fixed in version 0.31.1.
What happened
Dokploy is a free, self-hostable Platform as a Service (PaaS). In versions prior to 0.31.1, the Nixpacks publishDirectory build setting accepts shell metacharacters and is interpolated into a docker cp command executed through child_process.exec. An authenticated user with access to an application can execute arbitrary commands on the Dokploy host when triggering a Nixpacks deployment. The weakness is classified as CWE-78 (OS command injection).
Why it matters
According to the source, exploitation can lead to host compromise through the privileged Docker environment. The score is CVSS 3.1 9.9 (critical severity), 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 authentication and access to an application. CISA's KEV catalog does not list this vulnerability as actively exploited, and the source provides no indication that it has been exploited.
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. The source links the GitHub security advisory (GHSA-98j8-6vjr-c3xw), pull request #5911, the fix commit and the v0.31.1 release.
Sources and references
- https://github.com/Dokploy/dokploy/security/advisories/GHSA-98j8-6vjr-c3xw — CVE Program
- https://github.com/Dokploy/dokploy/pull/5911 — CVE Program
- https://github.com/Dokploy/dokploy/commit/2cd86b2447daba8fefec1272718d40463e18d6a3 — CVE Program
- https://github.com/Dokploy/dokploy/releases/tag/v0.31.1 — CVE Program
Weaknesses (CWE): CWE-78
Relevant change history
Published
Advisory published.