ZeroHour
CERT/CC Vulnerability Notespublished ()ingested

VU#280377: Dokploy is vulnerable to OS command injection

highVulnerabilityimportance 58
AI summary · glm-5.3-flash

CERT/CC details an OS command injection in Dokploy letting authenticated users execute commands as root; patched in 0.29.13.

CERT/CC VU#280377 describes an OS command injection in Dokploy's database backup creation and restoration, caused by unsanitized user input interpolated into shell commands run via /bin/bash. Authenticated users with default backup permissions can execute arbitrary commands with root privileges, gaining full host control and access to other tenants' stored credentials. Versions 0.29.8, 0.29.11, and canary commit 24b02f5 were confirmed vulnerable across all five supported databases; the vendor was unresponsive, and fixes shipped in versions 0.29.13 and later.

  • Command injection in backup/restore passes unsanitized input directly to /bin/bash
  • Authenticated users with default backup permissions gain root command execution
  • Affects PostgreSQL, MySQL, MariaDB, MongoDB, and LibSQL deployments
  • Patched in Dokploy 0.29.13+; vendor did not respond to CERT/CC coordination
  • Mitigation: disable default backup permissions and restrict them to necessary roles
VendorsDokploy
ProductsDokploy
OrganizationsCERT/CC
Full article458 words · extracted from kb.cert.org · click to collapse

Overview

Dokploy versions 0.29.8 and 0.29.11, as well as commit 24b02f5 on the canary branch, are vulnerable to OS command injection during the backup creation and restoration processes. The vulnerability stems from unsanitized shell command construction that can allow an attacker to escalate privileges and lead to full compromise of the target device.

Description

Dokploy is an open-source Platform as a Service solution for deploying applications and databases on self-hosted servers. Dokploy allows authenticated users to create and schedule database backups and restore previously created backups. These backup operations are executed by the Dokploy process, which runs with root privileges by default.

Dokploy is vulnerable to OS command injection in its database backup creation and restoration functionality due to insufficient sanitization of user-controlled input before it is incorporated into shell commands. The vulnerable backup functionality constructs database-specific shell commands that directly interpolate a user-supplied database name, while the restore functionality incorporates a user-supplied backupFile value into a shell command. Both operations ultimately pass the resulting command to a shell execution helper that invokes /bin/bash as a child of the Dokploy process, without shell escaping or restrictions on shell metacharacters.

The affected parameters are exposed through tRPC procedures that only validate that the supplied values are non-empty strings. Consequently, authenticated users with permission to perform database backups can supply shell metacharacters that are interpreted by /bin/bash, resulting in arbitrary command execution on the Dokploy host with the root privileges of the Dokploy server process.

Impact

An attacker with authenticated Dokploy account with backup permission (granted by default for database services) can execute arbitrary commands as root (default configuration) on the Dokploy host. Successful exploitation provides full control of the host, including persistent read/write access to the target server's filesystem and the ability to steal private credentials stored for other tenants managed by the same Dokploy instance.
The vulnerability affects all five database types supported by Dokploy: PostgreSQL, MySQL, MariaDB, MongoDB, and LibSQL. Exploitation was confirmed against versions 0.29.8 and 0.29.11, as well as commit 24b02f5 on the canary branch available on GitHub.

Solution

Unfortunately, Dokploy could not be reached to coordinate this vulnerability; however, the issue has been patched in Dokploy versions 0.29.13 and beyond. The CERT/CC recommends users update immediately. Database administrators or general operators unable to update should mitigate potential attacks by turning off default backup permissions, and restricting these permissions only to necessary users and roles.

Acknowledgements

Thanks to Muhammadjon Ahmadjonov for reporting this vulnerability. This document was written by Alex Lewis.

Vendor Information

280377

Filter by status:

Filter by content: Additional information available

 Sort by:


Other Information

API URL: VINCE JSON | CSAF
Date Public: 2026-09-17
Date First Published: 2026-09-17
Date Last Updated: 2026-09-17 15:02 UTC
Document Revision: 1

Text extracted automatically; images, tables and formatting may be missing. Original: https://kb.cert.org/vuls/id/280377