Description
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.
Published: 2026-06-26
Score: 9 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Dokku is a Docker‑based Platform as a Service that deploys applications via git pushes. A flaw in the application name validation regex allows shell metacharacters to enter the name unquoted. On a push, Dokku writes the app name into a bash pre‑receive hook using a non‑quoted heredoc. Bash then interprets shell metacharacters such as a semicolon as command separators, enabling an attacker who can push to the repository to execute arbitrary commands as the dokku user. This is an operating‑system command injection (CWE‑78) that can compromise the confidentiality, integrity, and availability of the entire Dokku host.

Affected Systems

Versions of Dokku older than 0.38.2 are affected. The issue resides in the dokku:dokku product and touches any instance that uses the default git pre‑receive hook. Any deployment that has not yet applied the 0.38.2 update remains vulnerable.

Risk and Exploitability

The vulnerability has a CVSS score of 9, classifying it as critical. Although no EPSS score is available and it is not listed in CISA KEV, the exploitation probability is uncertain; however the lack of a KEV listing does not preclude real-world attacks. The attack vector requires authenticated git push access, so it is limited to users who are allowed to deploy. The exploit path is straightforward: push a repository with an app name containing a shell metacharacter; the pre‑receive hook runs the embedded command, granting the attacker execution as dokku.

Generated by OpenCVE AI on June 26, 2026 at 17:27 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Dokku installation to version 0.38.2 or later, which replaces the vulnerable regex and quotes the app name when inserting it into the hook script.
  • If an upgrade cannot be performed immediately, restrict git push permissions to trusted users only or remove push access for users that do not need deployment rights.
  • Audit existing application names for characters that could be interpreted as shell metacharacters and rename any that violate the accepted pattern before applying any temporary measures.

Generated by OpenCVE AI on June 26, 2026 at 17:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 26 Jun 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 26 Jun 2026 16:45:00 +0000

Type Values Removed Values Added
Description 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.
Title Dokku: OS Command Injection via App Name in Git Pre-Receive Hook
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-06-26T18:41:32.788Z

Reserved: 2026-05-12T01:48:40.452Z

Link: CVE-2026-45408

cve-icon Vulnrichment

Updated: 2026-06-26T18:14:29.711Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-26T17:30:05Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')