
Image: Dokploy, dokploy.com.
Dokploy: Upgrade to 0.31.4 — 12 CVEs, 6 Critical, One Member Away from Host Takeover
Evidence: RESEARCH_ONLY — NOT LAB TESTED. This article is based on primary sources read directly (NVD records for all 12 CVEs, GitHub security advisories, the v0.31.1 release notes, the Dokploy license file) plus artifact checks dated 2026-11-21 (Docker Hub tags and digests, the live installer). The upgrade path was not run in a lab: the lab host had no container runtime and 808 MiB free RAM, below Dokploy’s 2 GiB minimum. Nothing in this article describes a tested upgrade, a tested backup, or a tested permission fix. See Verification scope.
The question
You run Dokploy — the free, self-hosted platform-as-a-service that deploys your apps, databases and scheduled jobs on your own VPS with Docker — and in November 2026 the project published a batch of 12 security advisories at once. Six of them are Critical. Are you affected, and what exactly do you do about it?
The decision up front: upgrade to the latest Dokploy release — v0.31.4 as observed on 21 November 2026. Version 0.31.1 is the minimum that closes the batch, but do not stop there: 0.31.1 does not fix everything, and one CVE in the batch has no release fix at all. After upgrading, fix /etc/dokploy permissions by hand (chmod 0755 /etc/dokploy) — the upgrade alone does not close that one. Then audit who in your organisation can change database passwords, create backups, and create schedules: in 11 of the 12 CVEs, the attacker is an authenticated low-privilege member, not an outsider.
What the batch is
All 12 CVEs were published in NVD between 13 and 18 November 2026, and all 12 are still Deferred — NVD has not analysed them yet, so the scores below come from the CNA (GitHub security advisories and VulnCheck), recorded in NVD as secondary. Severity: 6 Critical, 3 High, 3 Medium. None of the 12 is in the CISA Known Exploited Vulnerabilities catalog — checked directly against the feed on 21 November 2026 (catalog v2026.11.20, 1,790 entries) — and there is no confirmed in-the-wild exploitation for any of them. CISA SSVC, inside the NVD records, says exploitation is poc for five CVEs and none for four more; three have no SSVC record. A proof of concept existing is not the same as exploitation.
Dokploy core is Apache-2.0; an Enterprise tier ships under a proprietary license. The project’s default branch is canary, not main.
The batch is bigger than the 12 CVEs. The v0.31.1 changelog lists 38 fix(security) entries; only 12 of them received CVEs. Release PR #5973 describes the work as a source-code security audit — a shared assertServerAccess guard, shell quoting, and org/role boundaries. The common thread across the batch is shell metacharacters reaching unquoted shell commands, and member accounts reaching procedures they should not have.
| CVE | Severity | What happens | Fixed in |
|---|---|---|---|
| CVE-2026-129987 | 9.9 Critical | Backtick in a database password → OS command execution as the Dokploy process (typically root) | 0.31.1 |
| CVE-2026-129433 | 9.9 Critical | Shell metacharacters in a backup serviceName → command execution as root when a scheduled backup runs; host takeover via the Docker socket | 0.31.1 |
| CVE-2026-129316 | 9.9 Critical | WebSocket serviceId not bound to its container → member gets a root shell in the panel container | 0.31.0 |
| CVE-2026-129986 | 9.9 Critical | User-controlled file path passed unquoted to rm -rf → host command execution, no running container needed | 0.31.1 |
| CVE-2026-129989 | 9.9 Critical | Shell metacharacters in a Nixpacks publish directory → host compromise via docker cp | 0.31.1 |
| CVE-2026-129991 | 9.9 Critical | Backup prefix metacharacters survive into rclone commands → root on the Dokploy host or a remote server | 0.31.1 |
| CVE-2026-129985 | 8.7 High (CVSS 4.0) | Schedule appName interpolated unquoted into mkdir/script commands → OS commands as the Dokploy process | 0.31.1 |
| CVE-2026-129990 | 8.3 High | network.* procedures check only authentication, not the Docker permission → member manages Docker networks | 0.31.1 |
| CVE-2026-129315 | 8.5 High (CVSS 4.0) | /etc/dokploy world-writable (0777) → local user swaps in a script run as root | No release fix (installer/docs) |
| CVE-2026-129993 | 6.5 Medium | Settings endpoint returns the full web-server settings object, including the stored SSH private key, to any member | 0.31.1 |
| CVE-2026-129992 | 6.3 Medium | Failed builds and backups leak full commands — app env vars, database passwords, S3 keys — into notifications and logs | 0.31.0 |
| CVE-2026-128328 | 5.3 Medium (CVSS 4.0) | Authenticated member lists tracked files of any git repo via arbitrary repoPath in patch.readRepoDirectories | 0.31.1 |
The lead flaw: CVE-2026-129987 (CVSS 3.1: 9.9, CWE-77)
DATABASE_PASSWORD_REGEX in packages/server/src/db/schema/utils.ts allows backticks, and the database change-password procedures interpolate the password into a double-quoted Bash string executed via /bin/bash. An authenticated user who can update a database password — MySQL, PostgreSQL, MariaDB, MongoDB or Redis — gets arbitrary OS command execution with the privileges of the Dokploy process, typically root. The advisory itself (GHSA-9932-qg8x-pr32) publishes a proof of concept against /api/trpc/mysql.changePassword. NVD lists affected versions as below 0.31.1; the fix is PR #5910.
The backup flaw: CVE-2026-129433 (CVSS 3.1: 9.9, CVSS 4.0: 9.4, CWE-78)
OS command injection in getComposeContainerCommand(): a serviceName containing shell metacharacters is stored through the backup.create / backup.update procedures and executed as root when a scheduled backup fires. Because the panel container has the Docker socket mounted, that is host takeover. Affected versions are below 0.31.1; the fix is PR #5908.
The exception: CVE-2026-129315 (CVSS 4.0: 8.5, CWE-732)
The one-line installer and the manual-install docs ran chmod 777 /etc/dokploy. That directory is bind-mounted into the Dokploy and Traefik containers and holds traefik/, generated app files, schedules/ scripts and app .env files. A local non-root user on a shared host can swap in their own schedules/<app>/script.sh, executed as root on the next scheduled run. Single-user hosts are not affected — this needs an existing non-root local account. There is no Dokploy release that fixes it, because the fix is an installer and documentation change (website PR #225): new installs get 0755, existing installs must fix it by hand. See Step 3.
Two details from the same advisory are worth knowing. First, GHSA-pwg8-2x8c-wc2m (CVE-2026-129316) is itself described as an incomplete fix of an earlier advisory, GHSA-899j-cjwp-v4gw — so if you already upgraded once for a WebSocket issue, check again. Second, the same advisory notes app .env files are written world-readable (0644). A fix PR (#5944, setting .env files to 0600 before writing) exists, but it does not appear in the 0.31.1, 0.31.2 or 0.31.3 changelogs — do not assume it is fixed.
Step 1: check whether you are affected
Dokploy does not print its version in the image metadata — the official image carries no version label (checked 2026-11-21). Check the tag you deployed, or the version shown in the running panel on port 3000.
You are affected if you run anything below 0.31.1: that covers 9 of the 12 CVEs. Two more (CVE-2026-129316 and CVE-2026-129992) were fixed in 0.31.0, so anything below 0.31.0 carries all 12. And CVE-2026-129315 is separate from the version number: it affects any install done with the one-line installer or the manual docs up to the live install.sh as of 9 November 2026, when v0.31.0 was the latest release.
If anyone besides the owner holds a member account on your instance, the member-permission CVEs apply to you — that is 11 of the 12.
Step 2: upgrade to the latest release
Upgrade to the latest release — v0.31.4 as observed on 21 November 2026 (released 17 November, commit 37b3476; a feature release with no security fixes listed). 0.31.1 is the minimum that closes the batch, except for CVE-2026-129315, which needs the manual step in Step 3. Re-check which release is latest before you upgrade: Dokploy ships rolling releases and the number moves fast — 0.31.2 and 0.31.3 both shipped after 0.31.1, and 0.31.3 added further org/role hardening on domain, schedule and registry endpoints (PR #6040) plus Traefik 3.7.19.
Before upgrading, back up your Dokploy database and your app data. Use Dokploy’s documented update path at docs.dokploy.com. This article does not walk through the update clicks, because the upgrade was not run in a lab — see Verification scope.
Dokploy needs a server with at least 2 GB RAM (4 GB recommended), 30 GB disk, and ports 80, 443 and 3000 free; the installer refuses to run if any of those ports is in use. If your host is smaller than that, the upgrade is not your first problem — the install requirements are.
Step 3: fix /etc/dokploy by hand
The upgrade does not fix CVE-2026-129315. On an existing install, fix the permissions yourself:
sudo chmod 0755 /etc/dokploy
ls -ld /etc/dokploy
# drwxr-xr-x ... /etc/dokploy
The live installer was checked on 2026-11-21: it now creates /etc/dokploy at 0755 (line 577) and documents why 0777 was wrong, and no chmod 777 command remains in the file. So a fresh install with the current installer gets the fix; an existing install does not, until you run the command above.
While you are there, check your app .env files too: the same advisory notes they are written world-readable (0644). The fix PR for that (#5944) has unknown merge status, so verify the permissions on your own install rather than assuming the upgrade handled it.
Step 4: audit who can do what
This batch is a member-permission story. In 11 of the 12 CVEs the attacker is an authenticated member with low privileges (NVD records PR:L for all 11 network CVEs). Review every member account against the procedures the batch abused:
- Change database passwords (CVE-2026-129987) — who can do this for MySQL, PostgreSQL, MariaDB, MongoDB and Redis?
- Create and update backups (CVE-2026-129433, CVE-2026-129991) — who can set a backup
serviceNameorprefix? - Create and update schedules (CVE-2026-129985) — who can set a schedule
appName? - Manage Docker networks (CVE-2026-129990) — who can reach the
network.*procedures? - Read web-server settings (CVE-2026-129993) — who can call
settings.getWebServerSettings, which returns the stored SSH private key?
Dokploy roles are owner, admin, member, and custom. Remove member access to databases, backups and schedules wherever the person does not need it, and use custom roles where you need finer boundaries. Also check who holds a local account on the host itself — CVE-2026-129315 needs one.
Step 5: verify after the upgrade
Check three things once the upgrade is done:
- The panel shows 0.31.4 (or at least 0.31.1). Remember the version comes from the tag you deployed or the running panel, not from image metadata — the image has no version label.
/etc/dokployisdrwxr-xr-x(0755), owned by root.- A member account can no longer reach the sensitive procedures — spot-check one, for example that a member without database access cannot open the database password change.
Re-check the latest release at the time you upgrade. 0.31.4 was latest on 21 November 2026; by the time you read this, a newer release may exist, and the newest release is the right target.
Limitations
- This article is RESEARCH_ONLY — the upgrade path, the backup behaviour, and the manual
chmodstep were not run in a lab. The lab host had no container runtime and 808 MiB free RAM, below Dokploy’s 2 GiB minimum. Do not treat the steps above as tested procedures; they are the documented fixes and checks, verified against primary sources. - Release dates for 0.31.0, 0.31.1, 0.31.2 and 0.31.3 are not stated in this article — they could not be verified from a primary source. The fix is dated by the advisory publication (12 November 2026) instead.
- No public proof of concept for CVE-2026-129433 is claimed here: sources conflict on whether one exists, and none was independently confirmed.
- The merge status of PR #5944 (the
.env0600 fix) is unknown; it is not in the 0.31.1, 0.31.2 or 0.31.3 changelogs. - No formal end-of-life or support policy for older Dokploy versions was found. Dokploy ships rolling releases and fixes land in the next release only.
- The requirements figures (2 GB RAM minimum, 4 GB recommended, 30 GB disk, ports 80/443/3000) rest on multiple independent guides quoting the official docs; the official requirements page itself was not read directly.
- The scope of the proprietary-licensed parts was not fully verified (no
/proprietarydirectory at the repo root; deeper paths unchecked). The license line in this article is: Dokploy core is Apache-2.0; an Enterprise tier ships under a proprietary license.
Verification scope
Check date: 21/11/2026. Research ran on the evening of 2026-11-21; artifact checks ran 2026-11-21, 23:49–23:53 +07.
Verified against primary sources: all 12 NVD records; GHSA-9932-qg8x-pr32 (CVE-2026-129987), GHSA-qxjv-6cvh-32c6 (CVE-2026-129315) and GHSA-q7cq-vxv7-449c (CVE-2026-128328) read in full; the GitHub release v0.31.1 and the releases page; LICENSE.MD on the canary branch (the default branch is canary, not main); the VulnCheck advisory for CVE-2026-129433; the CISA KEV feed (catalog v2026.11.20, 1,790 entries — no match for any of the 12 CVE IDs or for “Dokploy”).
Artifact checks observed on 2026-11-21 (not a runtime lab): the Docker Hub latest digest matches v0.31.4 (released 17 November, commit 37b3476); the official image carries no version label and its entrypoint waits for PostgreSQL before running migrations; the live install.sh sets chmod 755 /etc/dokploy at line 577.
Not run: the runtime upgrade from an affected version, the backup behaviour behind CVE-2026-129433, and the manual chmod 0755 step on an existing install. The lab host had no container runtime of any kind and 808 MiB free RAM, below Dokploy’s 2 GiB minimum. A future lab would need a VPS or VM with at least 2 GiB RAM, Docker and Docker Swarm, ports 80, 443 and 3000 free, isolated from production.
For the same check-and-upgrade pattern on other self-hosted software, see Coolify — the self-hosted PaaS on the same shelf as Dokploy — and LiteLLM gateway.
References
- Dokploy v0.31.1 release — https://github.com/Dokploy/dokploy/releases/tag/v0.31.1
- Dokploy releases — https://github.com/Dokploy/dokploy/releases
- GHSA-9932-qg8x-pr32 (CVE-2026-129987) — https://github.com/Dokploy/dokploy/security/advisories/GHSA-9932-qg8x-pr32
- GHSA-qxjv-6cvh-32c6 (CVE-2026-129315) — https://github.com/Dokploy/dokploy/security/advisories/GHSA-qxjv-6cvh-32c6
- GHSA-q7cq-vxv7-449c (CVE-2026-128328) — https://github.com/Dokploy/dokploy/security/advisories/GHSA-q7cq-vxv7-449c
- NVD CVE-2026-128328 — https://nvd.nist.gov/vuln/detail/CVE-2026-128328
- VulnCheck advisory, CVE-2026-129433 — https://www.vulncheck.com/advisories/dokploy-before-0.31.1-os-command-injection-via-compose-backup-servicename
- NVD CVE-2026-129987 — https://nvd.nist.gov/vuln/detail/CVE-2026-129987
- Dokploy documentation — https://docs.dokploy.com/
- Dokploy license (canary branch) — https://raw.githubusercontent.com/Dokploy/dokploy/canary/LICENSE.MD
- CISA Known Exploited Vulnerabilities catalog — https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json
Bình luận
Bình luận được duyệt trước khi hiển thị.Đang tải bình luận…
Để lại bình luận