Servers and applications
CVE-2026-72870
Command Injection via Docker Credentials in buildRemoteDocker
- Severity
- High
- Published
- 21 Jul 2026
- Last changed
- 13 Aug 2026
- Added to UpHeron
- 1 Nov 2026
- Exploit chance
- 0.5% in the next 30 daysHigher than 42% of CVEs. EPSS by FIRST, 19 Nov 2026
- Weakness
- OS command injection (CWE-78)
- Also known as
- GHSA-g9cg-4mmj-mh7p
- Sources
- Project advisories (GitHub)
Description
Dokploy has a command injection vulnerability in the buildRemoteDocker() function. The Docker registry password, username, and dockerImage fields are interpolated directly into a shell command string without escaping, allowing an authenticated user to execute arbitrary OS commands on the Dokploy server by setting a malicious credential value and triggering a deployment.
The codebase already contains a correct mitigation: safeDockerLoginCommand() and shEscape() in packages/server/src/services/registry.ts perform proper single-quote escaping for the same Docker login operation. However, buildRemoteDocker() in docker.ts does not use these safe functions.
- Execute arbitrary OS commands as the Dokploy server process user (often root)
Affected software
| Software | Affected versions |
|---|---|
DokployServers and applications · github:dokploy/dokploy |
|
About Dokploy
Open Source Alternative to Vercel, Netlify and Heroku.
- Total downloads
- 6MDokploy
- Docker Hub pulls
- 16,318,110Docker Hub, 15 Nov 2026
- GitHub stars
- 38,516GitHub, 15 Nov 2026
- Forks
- 3,176GitHub, 15 Nov 2026
- Latest release
- v0.31.2GitHub, 15 Nov 2026
- Released
- 13 Nov 2026GitHub
- First published on GitHub
- 19 Apr 2024GitHub
Source code Website Docker image
Vulnerabilities in Dokploy
- In our list
- 139
- Published in the last 12 months
- 135
- Critical, last 12 months
- 62
- High, last 12 months
- 44
- Known exploited
- 0
- CVE-2026-133520Dokploy 0.28.0 before 0.31.1 Path Traversal via patch.readRepoDirectories repoPathMedium 5.3 20 Nov 2026
- CVE-2026-129989Dokploy: OS Command Injection via unsanitized publishDirectory in Nixpacks build pipelineCritical 9.9 18 Nov 2026
- CVE-2026-129987Dokploy: Authenticated RCE via Database Password Command SubstitutionCritical 9.9 18 Nov 2026
- CVE-2026-129433Dokploy before 0.31.1 OS Command Injection via Compose Backup serviceNameCritical 9.4 14 Nov 2026
- CVE-2026-128328Dokploy 0.28.0 before 0.31.1 Path Traversal via patch.readRepoDirectories repoPathMedium 5.3 13 Nov 2026
- CVE-2026-128329Dokploy 0.28.0 before 0.31.1 Path Traversal via patch.readRepoFileHigh 8.3 13 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-72870
- GitHub Advisory Database https://github.com/advisories/GHSA-g9cg-4mmj-mh7p
- github.com https://github.com/Dokploy/dokploy/security/advisories/GHSA-g9cg-4mmj-mh7p