/

CVE-2026-129433

Severity:

CRITICAL RISK

(9.9)

OS Command Injection (CWE-78) in Dokploy Backup Jobs

CVE-2026-129433

Deferred

Vulnerability type

Category:

OS Command Injection

CWE:

CWE-78

Impact:

Root-level command execution and potential host compromise

Severity:

CRITICAL RISK

(9.9)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Dokploy has an OS command injection vulnerability in the command construction used for Compose containers. An authenticated organization member who can set a malicious serviceName through backup procedures may cause commands to run as root when a scheduled backup executes.

Affected context

The issue affects Dokploy deployments where backup creation or update procedures accept a serviceName value that is later used by getComposeContainerCommand(). Risk arises when that value reaches shell command construction without adequate handling and a scheduled backup triggers execution. The mounted Docker socket may increase the impact by enabling access to host-level Docker operations.

Exploit preconditions

  • Attack surface: Dokploy backup management procedures and scheduled backup execution
  • Required access: Authentication as an organization member with access to the relevant backup procedures
  • Trigger point: A scheduled backup that uses a stored serviceName value
  • Why exploitation is possible: The value is incorporated into a shell command in a way that may allow shell metacharacters to alter command execution

Why this happens

The underlying issue is OS command injection, mapped to CWE-78: Improper Neutralization of Special Elements used in an OS Command. The application uses a service name in shell command construction without reliably separating data from command syntax. As a result, attacker-controlled input may be interpreted by the shell rather than treated only as a value.

Potential impact

  • Commands may execute with root privileges in the affected environment.
  • An attacker could compromise the Dokploy host, particularly where the Docker socket is mounted and accessible.
  • Host or container workloads may be disrupted or modified.
  • Secrets or data accessible to the affected runtime could be exposed.

General mitigation guidance

Defensive approaches generally focus on avoiding shell interpretation of untrusted values and limiting the impact of any command execution.

  • Prefer APIs that pass executable arguments directly without invoking a shell.
  • Treat service names and other request-derived values as untrusted; validate them against a strict, context-appropriate allowlist.
  • Use secure-by-default command construction and avoid string concatenation for commands.
  • Restrict which organization members can manage backups and limit the privileges of the process that runs scheduled jobs.
  • Minimize Docker socket exposure and apply least-privilege controls to container and host resources.

How teams detect issues like this

  • Use static analysis to identify shell invocation and command-string construction that incorporates request or database values.
  • Review backup creation and update flows, including how stored service names reach scheduled job execution.
  • Look for code review signals such as shell APIs, string concatenation, or insufficient validation around command arguments.
  • Enforce policies that prefer non-shell process APIs and require allowlist validation for values used in operating-system operations.
  • Monitor scheduled backup activity and host-level process creation for unexpected commands or Docker operations.

Sources

SourceLink
github.comgithub.com/Dokploy/dokploy
github.comgithub.com/Dokploy/dokploy/blob/v0.31.0/packages/server/src/utils/backups/utils.ts#L152
github.comgithub.com/Dokploy/dokploy/commit/b24006e16e95a10ce3daf739d06ac783e5c70ba0
github.comgithub.com/Dokploy/dokploy/pull/5908
github.comgithub.com/Dokploy/dokploy/releases/tag/v0.31.1
github.comgithub.com/Dokploy/dokploy/security/advisories/GHSA-j329-jw7j-rxjm
vulncheck.comvulncheck.com/advisories/dokploy-before-0.31.1-os-command-injection-via-compose-backup-servicename

Frequently asked

questions

An authenticated organization member with access to the relevant backup procedures may be able to store a value that becomes dangerous when a scheduled backup runs.

The described trigger is scheduled backup execution, when the stored service name is used to construct the command.

Avoid invoking a shell for commands that can be run through an API with separately supplied arguments. Validate accepted service names using a strict allowlist.

Keep untrusted input out of shell command strings, review data flows from API procedures to background jobs, and run those jobs with least privilege while limiting Docker socket access.

Find out what's already
exploitable in your codebase.