CVE-2026-129433: Dokploy OS command injection via backup service name allows root execution

Dokploy before 0.31.1 allows authenticated organization members to inject shell commands through the serviceName parameter in backup creation and update operations. When scheduled backups run, injected commands execute as root with access to the mounted Docker socket, enabling complete hos

Share

Dokploy is a self-hosted deployment platform that manages containerized applications. The vulnerability exists in the getComposeContainerCommand() function, which constructs shell commands without properly sanitizing the serviceName parameter. Authenticated users can store malicious shell metacharacters in backup configuration, and these execute with root privileges during scheduled backup runs, providing a direct path to host takeover via the Docker daemon socket.

CVECVE-2026-129433
SeverityCritical (CVSS 9.9)
Actively exploitedNot confirmed at time of writing

How the attack works

An authenticated organization member creates or updates a backup via the backup.create or backup.update tRPC procedures, embedding shell metacharacters (such as backticks, semicolons, or command substitution syntax) in the serviceName field. These values are stored in configuration. When the scheduled backup job runs, getComposeContainerCommand() concatenates the serviceName directly into a shell command without escaping. The shell interprets the metacharacters and executes attacker commands as root. Because the Docker socket is mounted into the backup container, the attacker gains control of the Docker daemon and can escape to the host.

Who is affected

Dokploy before version 0.31.1. Any organization running Dokploy with backup functionality enabled and users granted organization member privileges poses risk.

How to check if you're exposed

  • Identify all Dokploy deployments and their versions via API or CLI: dokploy --version
  • Audit backup configuration history for serviceName values containing shell metacharacters (backticks, $(), semicolons, pipes, redirects)
  • Review backup job logs and container execution logs for unexpected command execution or failed backup operations
  • Query tRPC logs for backup.create and backup.update calls made by organization members in the past 30 days

How to fix it

  • Upgrade to Dokploy 0.31.1 or later immediately
  • Rotate any credentials, tokens, or secrets that may have been exposed if backups executed unauthorized commands
  • Audit Docker images, volumes, and networks for unauthorized creation or modification
  • Review host logs for unexpected process execution, file modifications, or network connections during backup windows

If you can't patch yet

  • Immediately revoke or restrict backup creation and update permissions to a minimal set of trusted administrators
  • Disable scheduled backups until the system can be patched, or move backups to an isolated, non-production environment
  • Monitor backup service logs and process execution on the host for anomalies; consider temporary SELinux or AppArmor restrictions on backup processes

Need help checking your exposure or patching at scale? FutureOps InfoTech can help.

Read more