CVE-2026-45628: Dokploy: Command Injection via Unescaped Branch Fields in Deployment Pipeline

Published May 29, 2026
·
Updated

Dokploy is a free, self-hostable Platform as a Service (PaaS). In 0.29.2 and earlier, Dokploy constructs shell commands using JavaScript template literals and executes them via childprocess.exec() (which runs through /bin/sh -c). User-supplied branch names, repository URLs, and Docker credentials are interpolated directly into these commands without escaping. This requires an authenticated user with application create/edit privileges.

Affected Software

1 affected component
Dokploy Dokploy<=0.29.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Modify Dokploy so that user-supplied branch names, repository URLs, and Docker credentials are not interpolated directly into shell commands executed via child_process.exec()/"/bin/sh -c". Validate and sanitize these inputs and avoid constructing commands with JavaScript template literals that include unescaped user data; instead pass safe, validated arguments or otherwise ensure proper escaping before invocation.

    Dokploy (deployment pipeline) shell command construction = do not interpolate unescaped user input
  2. Compensating control

    Restrict which authenticated users have application create/edit privileges to trusted personnel only. Audit and monitor accounts with create/edit privileges and limit assignment of those privileges to reduce the risk surface (vulnerability requires an authenticated user with application create/edit privileges).

  3. Operational

    Rotate any Docker credentials, repository tokens, or other secrets that were entered into Dokploy application fields and might have been exposed or injected. Review recent application create/edit actions for suspicious activity and remediate any unauthorized deployments.

Event History

May 29, 2026
CVE Published
via MITRE·04:33 PM
Data Sourced
via MITRE·04:33 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:17 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-45628?

The severity of CVE-2026-45628 is critical with a score of 9.6.

2

How do I fix CVE-2026-45628?

To fix CVE-2026-45628, upgrade to Dokploy version 0.29.3 or later where the command injection vulnerability is addressed.

3

What type of vulnerability is identified in CVE-2026-45628?

CVE-2026-45628 is identified as a command injection vulnerability due to improper input validation.

4

What can be exploited in CVE-2026-45628?

CVE-2026-45628 can be exploited through unescaped branch fields in the deployment pipeline, allowing attackers to execute arbitrary commands.

5

Which version of Dokploy is affected by CVE-2026-45628?

Dokploy versions 0.29.2 and earlier are affected by CVE-2026-45628.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203