Skip to content
DayZeroHub
Critical CVSS 9.9CVE-2026-129991

Dokploy: authenticated command injection in backups allows command execution as root (CVE-2026-129991)

Dokploy dokploy

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).

ProductVersionsFixed 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.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-78

Relevant change history

  1. Published

    Advisory published.

Summary written with AI assistance from the source data. See the sources and references for complete information. View sources