CVE-2026-72865

Dokploy: OS Command Injection via compose `composePath`

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, the compose.update operation stores an unvalidated composePath that packages/server/src/utils/builders/compose.ts and packages/server/src/services/compose.ts interpolate into docker compose -f, docker stack deploy -c, and touch shell commands executed through /bin/sh -c. An authenticated member with compose write and deploy permission can supply a crafted composePath, trigger compose.deploy or startCompose, and execute arbitrary operating-system commands in the Docker-privileged Dokploy host context. This issue is fixed in version 0.29.13.

Analysis

AI-generated

Technical impact

Dokploy stores the composePath value without validation before version 0.29.13, allowing an attacker to embed arbitrary shell commands into Docker‑compose and stack deploy scripts that are executed by /bin/sh -c. An authenticated user who possesses compose write and deploy permissions can supply a crafted composePath, trigger the compose.deploy or startCompose actions, and execute arbitrary operating‑system commands in the Docker‑privileged Dokploy host environment. This flaw, classified as CWE‑78, provides the attacker with the ability to achieve full code execution and compromise the confidentiality, integrity and availability of the host system.

Affected Systems

All installations of Dokploy earlier than version 0.29.13 are affected. The vulnerability exists in the compose.update operation within the server modules that construct Docker commands from the user supplied composePath. Any user with compose write and deploy rights on such an instance is at risk.

Risk and Exploitability

The CVSS score of 9.9 places this issue in the highest severity band, and the lack of an EPSS score indicates the data is not available, though the high CVSS indicates a serious risk. The vulnerability is not currently listed in the CISA KEV catalog. The attack requires an authenticated user with specific compose permissions, so limited access control is a prerequisite. Once those permissions are in place, the attacker can inject commands that are run with the privileges of the Dokploy host, which is typically Docker‑privileged, making exploitation potentially extremely damaging.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Dokploy to version 0.29.13 or later, where the composePath validation has been fixed.
  • Revoke compose write and deploy permissions from users who do not require them, limiting the window of opportunity for an attacker.
  • If the Dokploy instance runs in a Docker‑privileged environment, consider relocating it to a non‑privileged container or restricting its capabilities to reduce the impact of a potential command injection.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Dokploy
Dokploy dokploy
Vendors & Products Dokploy
Dokploy dokploy
Type Values Removed Values Added
Description Dokploy is a free, self-hostable Platform as a Service (PaaS). Prior to 0.29.13, the compose.update operation stores an unvalidated composePath that packages/server/src/utils/builders/compose.ts and packages/server/src/services/compose.ts interpolate into docker compose -f, docker stack deploy -c, and touch shell commands executed through /bin/sh -c. An authenticated member with compose write and deploy permission can supply a crafted composePath, trigger compose.deploy or startCompose, and execute arbitrary operating-system commands in the Docker-privileged Dokploy host context. This issue is fixed in version 0.29.13.
Title Dokploy: OS Command Injection via compose `composePath`
Weaknesses CWE-78
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-78

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

Sources

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