CVE-2026-72877: Dokploy: Command Injection via dockerImage in buildRemoteDocker
Dokploy is a free, self-hostable Platform as a Service (PaaS). Prior to 0.29.13, the dockerImage field is interpolated without quoting into shell commands in buildRemoteDocker() in packages/server/src/utils/providers/docker.ts and is validated only as an optional string. An authenticated user with application create or update permission can use shell command substitution in dockerImage to execute arbitrary commands on the local build host or a remote SSH build target, exposing host secrets and other projects. This issue is fixed in version 0.29.13.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 0.29.13 - Compensating control
Restrict who can create or update Dokploy applications (requires application create or update permission) until all instances are upgraded to 0.29.13.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-72877?
The severity of CVE-2026-72877 is classified as critical with a score of 9.6.
How do I fix CVE-2026-72877?
To fix CVE-2026-72877, update Dokploy to version 0.29.13 or later where the vulnerability has been addressed.
What type of vulnerability is CVE-2026-72877?
CVE-2026-72877 is an OS Command Injection vulnerability.
Who is affected by CVE-2026-72877?
CVE-2026-72877 affects authenticated users of Dokploy versions prior to 0.29.13.
What is the primary impact of CVE-2026-72877?
The primary impact of CVE-2026-72877 is the potential for unauthorized command execution on the server.