CVE-2026-72874

Dokploy: Command Injection via Unescaped Git URL in Clone Commands

Published Aug 10, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
Dokploy is a free, self-hostable Platform as a Service (PaaS). Prior to 0.29.13, cloneGitRepository in packages/server/src/utils/providers/git.ts interpolates customGitUrl and customGitBranch into a git clone command passed to execAsync or execAsyncRemote, allowing an authenticated user with application access to execute arbitrary operating system commands on the Dokploy host by setting a malicious custom Git URL and triggering deployment. This issue is fixed in version 0.29.13.

Analysis

AI-generated

Technical impact

Dokploy, a self‑hosted Platform as a Service, contains a command injection flaw in the cloneGitRepository function. Prior to version 0.29.13 the function concatenates an unescaped customGitUrl and customGitBranch into a git clone command that is executed with execAsync or execAsyncRemote. An attacker who has authenticated application access can supply a malicious Git URL that contains shell metacharacters; when the deployment is triggered the server runs those characters as operating‑system commands, giving the attacker arbitrary code execution on the host system. The vulnerability is a classic example of CWE‑78, which can undermine confidentiality and integrity of the entire platform.

Affected Systems

The issue affects all deployments of Dokploy that are running any version prior to 0.29.13. The vulnerability exists in the server side code packages/server/src/utils/providers/git.ts. The affected product is Dokploy itself, a free self‑hostable PaaS platform. Upgrade to v0.29.13 or later to eliminate the flaw.

Risk and Exploitability

The CVSS score of 8.7 indicates a high severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires that the user be authenticated with application access. Because the attacker can control the Git URL passed to the server, any malicious payload crafted into that URL will be executed on the host. The lack of input sanitization or escaping in the clone command makes this threat realistic for users that enable custom Git repositories.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Dokploy to version 0.29.13 or later.
  • Restrict or disable the ability for authenticated users to set custom Git URLs and branches.
  • If an upgrade is not immediately possible, temporarily disable the custom Git repository deployment feature until a patched version is deployed.

Generated by OpenCVE AI on August 10, 2026 at 20:40 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, cloneGitRepository in packages/server/src/utils/providers/git.ts interpolates customGitUrl and customGitBranch into a git clone command passed to execAsync or execAsyncRemote, allowing an authenticated user with application access to execute arbitrary operating system commands on the Dokploy host by setting a malicious custom Git URL and triggering deployment. This issue is fixed in version 0.29.13.
Title Dokploy: Command Injection via Unescaped Git URL in Clone Commands
Weaknesses CWE-78
References
Metrics cvssV4_0

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

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:41 PM
Reserved
Aug 10, 2026, 3:28 PM
Status
Deferred
Published
Aug 10, 2026, 8:17 PM
Modified
Sep 8, 2026, 8:54 PM