Dokploy before 0.31.1 OS Command Injection via Compose Backup serviceName
- State
- Published
- Severity
- 9.4 Critical
- Published
- Nov 14, 2026
- Updated
- Nov 16, 2026
- Reserved
- Nov 14, 2026
Description
Dokploy before 0.31.1 contains an OS command injection vulnerability in getComposeContainerCommand() that allows authenticated organization members to execute shell commands via the serviceName parameter. Attackers can store serviceName values with shell metacharacters through backup.create or backup.update tRPC procedures, executing commands as root when scheduled backups run and taking over the host via the mounted Docker socket.
| Product | Versions |
|---|---|
| dokploy Dokploy | before 0.31.1 Affected0.31.1 Not Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 9.4 Critical | VulnCheck | |
| 3.1 | 9.9 Critical | VulnCheck |
Weaknesses
- CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
- GitHub Security Advisory (GHSA-j329-jw7j-rxjm)Vendor Advisory
- https://github.com/Dokploy/dokploy/pull/5908Issue TrackerPatch
- Patch CommitPatch
- Unescaped serviceName in getComposeContainerCommand at v0.31.0Technical Details
- Dokploy v0.31.1 Release NotesRelease Notes
- https://github.com/Dokploy/dokployProduct Page
- VulnCheck Advisory: Dokploy before 0.31.1 OS Command Injection via Compose Backup serviceNameThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.