CVE-2026-72881

Dokploy: Command Injection via database credentials in backup/restore commands

Published Aug 10, 2026 CVSS 4.0 · 6.4 Medium EPSS < 1% KEV · Not listed
Description
Dokploy is a free, self-hostable Platform as a Service (PaaS). Prior to 0.29.13, database backup and restore command builders in packages/server/src/utils/backups/utils.ts and packages/server/src/utils/restore/utils.ts interpolate database names, usernames, and passwords into nested shell command strings passed to child_process.exec(). An authenticated administrator with permission to create databases and configure backups can use crafted database configuration fields to execute arbitrary commands inside PostgreSQL, MariaDB, MySQL, MongoDB, or LibSQL containers, exposing database data and credentials and potentially enabling escape when a container is overprivileged. This issue is fixed in version 0.29.13.

Analysis

AI-generated

Technical impact

A flaw in Dokploy’s backup and restore utilities allows an authenticated administrator to embed arbitrary shell commands within database configuration fields. The vulnerability arises from unsanitized interpolation of database names, usernames, and passwords into shell strings that are executed by child_process.exec(). The flaw permits attackers to run arbitrary commands inside PostgreSQL, MariaDB, MySQL, MongoDB, or LibSQL containers, potentially exposing database credentials and data and enabling container escape when the container has excessive privileges.

Affected Systems

Dokploy Dokploy versions prior to 0.29.13 are affected. Users running the PaaS application with an authenticated administrator account that has permission to configure database backups and restores are susceptible.

Risk and Exploitability

The CVSS score of 6.4 indicates moderate severity, while no EPSS score is currently available. This vulnerability is not listed in the CISA KEV catalog. Exploitation requires legitimate administrative access and the privilege to intervene in database configuration, thus the attack vector is likely restricted to internal administrators or privileged attackers with such access.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Dokploy to version 0.29.13 or later, which removes the unsafe command interpolation.
  • If an upgrade cannot be performed immediately, disable backup and restore functionality or restrict the feature to a limited set of trusted administrators.
  • Verify that only trusted users have rights to configure database backups, and review any custom database credentials for proper validation.

Generated by OpenCVE AI on August 10, 2026 at 20:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Dokploy
Dokploy dokploy
Vendors & Products Dokploy
Dokploy dokploy
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Dokploy is a free, self-hostable Platform as a Service (PaaS). Prior to 0.29.13, database backup and restore command builders in packages/server/src/utils/backups/utils.ts and packages/server/src/utils/restore/utils.ts interpolate database names, usernames, and passwords into nested shell command strings passed to child_process.exec(). An authenticated administrator with permission to create databases and configure backups can use crafted database configuration fields to execute arbitrary commands inside PostgreSQL, MariaDB, MySQL, MongoDB, or LibSQL containers, exposing database data and credentials and potentially enabling escape when a container is overprivileged. This issue is fixed in version 0.29.13.
Title Dokploy: Command Injection via database credentials in backup/restore commands
Weaknesses CWE-78
References
Metrics cvssV4_0

{'score': 6.4, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:H/SI:H/SA:H'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 10, 2026, 7:51 PM
Reserved
Aug 10, 2026, 3:28 PM
Status
Deferred
Published
Aug 10, 2026, 8:17 PM
Modified
Sep 8, 2026, 8:54 PM