CVE-2026-45662: Dokploy: Command Injection via incomplete shell escaping in docker logout (registry deletion)

Published May 29, 2026
·
Updated

Dokploy is a free, self-hostable Platform as a Service (PaaS). In 0.29.0 and earlier, the deleteRegistry function in Dokploy (packages/server/src/services/registry.ts) executes docker logout ${response.registryUrl} without shell escaping. In the same file, the docker login command correctly uses shEscape() to prevent command injection. This inconsistency creates a command injection vulnerability when deleting a registry with a crafted registryUrl.

Affected Software

1 affected component
Dokploy Dokploy<=0.29.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Modify deleteRegistry in packages/server/src/services/registry.ts so that the value inserted into the docker logout command is properly shell-escaped (for example, by calling shEscape() on response.registryUrl) or otherwise sanitized to prevent command injection.

    Dokploy (server - registry service) docker logout invocation = use shEscape(response.registryUrl) or equivalent shell-escaping/sanitization
  2. Configuration

    Implement server-side validation and sanitization for registryUrl values accepted by the registry deletion API: allow only expected hostname/URL formats and reject values containing shell metacharacters or unexpected characters to prevent injection vectors.

    Dokploy (server - registry service) registryUrl input validation = enforce strict validation (allow only expected hostnames/URLs, reject shell metacharacters)

Event History

May 29, 2026
CVE Published
via MITRE·04:04 PM
Data Sourced
via MITRE·04:04 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:16 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-45662?

The severity of CVE-2026-45662 is classified as high with a score of 8.8.

2

How do I fix CVE-2026-45662?

To fix CVE-2026-45662, update Dokploy to version 0.29.1 or later to ensure proper shell escaping.

3

What type of vulnerability is CVE-2026-45662?

CVE-2026-45662 is classified as an OS Command Injection vulnerability.

4

What component of Dokploy is affected by CVE-2026-45662?

CVE-2026-45662 affects the deleteRegistry function in Dokploy's registry service.

5

What are the potential impacts of CVE-2026-45662?

The potential impacts of CVE-2026-45662 include unauthorized command execution and registry deletion due to insufficient shell escaping.

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