All vulnerabilities

Servers and applications

CVE-2026-45408

OS Command Injection via App Name in Git Pre-Receive Hook

Severity
Critical 9.0
Published
13 May 2026
Last changed
26 Jun 2026
Added to UpHeron
1 Nov 2026
Fixed in
0.38.2
Exploit chance
0.4% in the next 30 daysHigher than 36% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
OS command injection (CWE-78)
Attack
Over the network · Needs a user account · Needs someone to click or open something
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
Also known as
GHSA-9x85-7gxq-fcr3
Sources
NVD, Project advisories (GitHub)

Description

The app name validation regex (^[a-z0-9][^/:_A-Z]*$) permits shell metacharacters including ;, $, backticks, |, &, (), >, and <. When an authenticated user pushes to a git remote with a crafted app name (e.g., a;id), 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 security issue applies to all installations and can be exploited by any user that has been granted push access to a Dokku installation.

From dokku/dokku's security advisory.

Affected software

SoftwareAffected versions
DokkuServers and applications · cpe:a:dokku:dokku
  • Every version before 0.38.2
DokkuServers and applications · github:dokku/dokku
  • Every version before 0.38.2

About Dokku

docker-powered PaaS software

From Wikidata, CC0 1.0.
Docker Hub pulls
444,121Docker Hub, 15 Nov 2026
GitHub stars
32,229GitHub, 15 Nov 2026
Forks
2,096GitHub, 15 Nov 2026
Latest release
v0.38.34GitHub, 15 Nov 2026
Released
30 Oct 2026GitHub
License
MIT LicenseWikidata
First published on GitHub
8 Jun 2013GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-45408
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-45408
  • GitHub Advisory Database https://github.com/advisories/GHSA-9x85-7gxq-fcr3
  • github.com https://github.com/dokku/dokku/security/advisories/GHSA-9x85-7gxq-fcr3