CVE-2026-45408: Dokku: OS Command Injection via App Name in Git Pre-Receive Hook

Published Jun 26, 2026
·
Updated

Dokku is a docker-powered PaaS. Prior to 0.38.2, the app name validation regex (^[a-z0-9][^/:A-Z]$) permits shell metacharacters. When an authenticated user pushes to a git remote with a crafted app name, the name is embedded unquoted into a bash pre-receive hook script via an unquoted heredoc (<<EOF instead of <<'EOF') in fn-git-create-hook() at plugins/git/internal-functions:378. On git push, bash interprets the semicolon as a command separator, executing arbitrary commands as the dokku user. 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 upgrade immediately, prevent authenticated users from pushing to the affected git remote with crafted app names (e.g., restrict who can push to the git remote / enforce app-name allowlisting before push).

Event History

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

Frequently Asked Questions

1

What is the severity of CVE-2026-45408?

CVE-2026-45408 has a severity rating of critical, with a score of 9.

2

How do I fix CVE-2026-45408?

To fix CVE-2026-45408, update Dokku to version 0.38.2 or later.

3

What type of vulnerability is CVE-2026-45408?

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

4

What software is affected by CVE-2026-45408?

CVE-2026-45408 affects the Dokku software platform.

5

What is the impact of exploiting CVE-2026-45408?

Exploiting CVE-2026-45408 can allow an attacker to execute arbitrary commands on the server through crafted app names.

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