CVE-2026-72735

Dokploy: Command injection in writeTraefikConfigRemote via shell interpolation of unescaped YAML in SSH remote execution

Published Aug 10, 2026 CVSS 3.1 · 9.9 Critical EPSS < 1% KEV · Not listed
Description
Dokploy is a free, self-hostable Platform as a Service (PaaS). Prior to 0.29.13, writeTraefikConfigRemote in packages/server/src/utils/traefik/application.ts serializes user-controlled Traefik configuration with yaml.stringify and interpolates the resulting yamlStr into an echo command executed through execAsyncRemote. Single quotes in redirect regex and replacement fields, basic authentication usernames, domain host values, or middleware configuration can terminate the shell quoting and execute arbitrary commands on managed remote servers with the configured SSH user's privileges. This vulnerability is caused by an incomplete fix for CVE-2026-45630. This issue is fixed in version 0.29.13.

Analysis

AI-generated

Technical impact

Dokploy is a self‑hosted platform‑as‑a‑service that allows users to configure Traefik remotely. The writeTraefikConfigRemote function serializes incoming user data into YAML, then interpolates that YAML string into an echo command executed via SSH on a managed host. Maliciously crafted YAML that contains single quotes in redirect regex, replacement fields, basic authentication usernames, domain host values, or middleware configuration can terminate the shell quoting and inject arbitrary commands. The attacker thus gains the privileges of the configured SSH user on the remote server, potentially compromising confidentiality, integrity, and availability.

Affected Systems

Versions of Dokploy released before 0.29.13, specifically the server component packages/server/src/utils/traefik/application.ts, are affected. Administrators using any deployment of Dokploy that has not applied the hotfix in 0.29.13 are vulnerable.

Risk and Exploitability

The CVSS score of 9.9 indicates critical severity. The EPSS score is not available, and the vulnerability is not listed in KEV, but the nature of the shell injection and the privileged access via SSH make exploitation realistic. The likely attack vector is a client or malicious actor that can trigger the writeTraefikConfigRemote endpoint, such as a compromised deployment client or a malicious website owner, and that has valid SSH credentials to the managed host.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Dokploy to version 0.29.13 or later, which implements proper YAML escaping and removes the vulnerable echo command.
  • Until the upgrade can be applied, restrict the ability to invoke writeTraefikConfigRemote to trusted administrators or block remote SSH execution from untrusted sources.
  • If upgrading immediately is infeasible, audit existing YAML configuration files on managed servers to eliminate any unsanitized single‑quote characters that may have been inserted through a prior injection.

Generated by OpenCVE AI on August 10, 2026 at 19:37 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': 'total'}, '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, writeTraefikConfigRemote in packages/server/src/utils/traefik/application.ts serializes user-controlled Traefik configuration with yaml.stringify and interpolates the resulting yamlStr into an echo command executed through execAsyncRemote. Single quotes in redirect regex and replacement fields, basic authentication usernames, domain host values, or middleware configuration can terminate the shell quoting and execute arbitrary commands on managed remote servers with the configured SSH user's privileges. This vulnerability is caused by an incomplete fix for CVE-2026-45630. This issue is fixed in version 0.29.13.
Title Dokploy: Command injection in writeTraefikConfigRemote via shell interpolation of unescaped YAML in SSH remote execution
Weaknesses CWE-77
References
Metrics cvssV3_1

{'score': 9.9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'}

Weaknesses
  • CWE-77

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 10, 2026, 6:38 PM
Reserved
Aug 10, 2026, 1:48 PM
Status
Deferred
Published
Aug 10, 2026, 6:18 PM
Modified
Sep 8, 2026, 8:54 PM