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.
Affected software
| Software | Affected versions |
|---|---|
DokkuServers and applications · cpe:a:dokku:dokku |
|
DokkuServers and applications · github:dokku/dokku |
|
About Dokku
docker-powered PaaS software
- 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
Website Source code Docker image
Vulnerabilities in Dokku
- In our list
- 6
- Published in the last 12 months
- 6
- Critical, last 12 months
- 3
- High, last 12 months
- 2
- Known exploited
- 0
- CVE-2026-86002Host Command Execution via eval of Unsanitized Docker Options in DOCKER_ARGSCritical 9.0 24 Sept 2026
- CVE-2026-54636OS Command Injection via app.json managed CronCritical 9.9 16 Jun 2026
- CVE-2026-45406Host RCE via Maliciously Named OpenResty Include Files Injected Through evalHigh 8.8 13 May 2026
- CVE-2026-45407Git Credentials in .netrc Stored World-Readable Due to Premature touchMedium 5.5 13 May 2026
- CVE-2026-45405Arbitrary File Write via Tar Symlink Traversal in git:from-archive and certs:addHigh 8.8 13 May 2026
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