Sceawere
Vulnerability Detail
CVE-2026-72740UPDATED Verified Sceawere Triage Sources: NVD / CISA KEV
Dokploy SSH Command Injection Vulnerability
Vulnerability Metadata
- Severity
- Critical
- Score / CVSS
- 9.9
- Creation Date
- 5h ago
- Vendor
- Dokploy
- Product
- dokploy
- Attack Type
- CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- Attack Complexity
- LOW
Narrative and Response
Description
Dokploy is a free, self-hostable Platform as a Service (PaaS). Prior to 0.29.13, packages/server/src/utils/providers/git.ts parses the user-controlled customGitUrl with sanitizeRepoPathSSH and interpolates its domain into the ssh-keyscan command from addHostToKnownHostsCommand without shell quoting, allowing an authenticated member with service deployment permission and an attached SSH key to execute arbitrary commands on the Dokploy host during deployment. This issue is fixed in version 0.29.13.
Executive Summary
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Technical Details
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Mitigations
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
References
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Additional Metadata
{
"score": "9.9",
"pubDate": "2026-08-10T18:18:52.723Z",
"pubdate": "2026-08-10T18:18:52.723Z",
"executiveSummary": "An authenticated command injection vulnerability exists in Dokploy prior to version 0.29.13.\nThe vulnerability allows authenticated members with service deployment permissions and an attached SSH key to execute arbitrary commands on the underlying Dokploy host.\nThe flaw stems from improper input sanitization and a lack of shell quoting when handling user-controlled parameters.\nSuccessful exploitation compromises the integrity, confidentiality, and availability of the host running the PaaS environment.\nThe attack requires authentication, service deployment permissions, and an attached SSH key.\nThe issue is resolved in version 0.29.13 by properly securing command interpolation.",
"technicalDetails": "The vulnerability resides in the packages/server/src/utils/providers/git.ts file within Dokploy.\nSpecifically, the input parameter customGitUrl is processed using the sanitizeRepoPathSSH function.\nThe parsed domain from customGitUrl is subsequently interpolated directly into the ssh-keyscan command string invoked by addHostToKnownHostsCommand.\nBecause the domain is interpolated without proper shell quoting or argument separation, malicious payloads containing shell metacharacters can be injected.\nThe affected component is the Git provider integration utility responsible for SSH host verification during repository configuration.\nAffected versions include all Dokploy installations prior to version 0.29.13.\nExploitation requires an attacker to possess authenticated access to the platform, specific service deployment permissions, and an attached SSH key.\nDuring the deployment phase, when the application attempts to execute ssh-keyscan against the maliciously crafted customGitUrl, the operating system shell interprets the injected commands alongside the command arguments.\nThis results in arbitrary command execution on the host system operating at the privilege level of the Dokploy server process, potentially leading to full host compromise and post-exploitation activities such as lateral movement or data exfiltration."
}