CVE-2026-45406: Dokku: Host RCE via Maliciously Named OpenResty Include Files Injected Through eval

Published Jun 26, 2026
·
Updated

Dokku is a docker-powered PaaS. Prior to 0.38.2, the openresty-vhosts plugin copies files from an app's openresty/http-includes/ git repository directory to the host and then interpolates their filenames, unescaped, into a single-quoted shell string that is later parsed by eval. A filename containing a single quote breaks the quoting and allows command substitution to execute arbitrary commands on the host as the dokku user during the app's next deploy. This vulnerability is fixed in 0.38.2.

Affected Software

2 affected components
Dokku<0.38.2
Dokku Dokku<0.38.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade dokku to a version that resolves this vulnerability.

    Fixed in 0.38.2
  2. Compensating control

    If you cannot immediately upgrade, mitigate by preventing untrusted apps/users from providing OpenResty include files with malicious filenames in the app's openresty/http-includes/ directory before the next Dokku deploy.

Event History

Jun 26, 2026
CVE Published
via MITRE·04:22 PM
Data Sourced
via MITRE·04:22 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-45406?

The severity of CVE-2026-45406 is critical with a score of 9.

2

How do I fix CVE-2026-45406?

To fix CVE-2026-45406, upgrade Dokku to version 0.38.2 or later.

3

What type of vulnerability is CVE-2026-45406?

CVE-2026-45406 is a remote code execution (RCE) vulnerability.

4

Who is affected by CVE-2026-45406?

Users of Dokku versions prior to 0.38.2 that utilize the openresty-vhosts plugin are affected by CVE-2026-45406.

5

What causes CVE-2026-45406?

CVE-2026-45406 is caused by the improper handling of filenames in the openresty-vhosts plugin, which allows for the injection of maliciously named files.

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