Dokku: OS Command Injection via App Name in Git Pre-Receive Hook
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-78.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA dokku (dokku) Fixed in 0.38.2
Timeline
- 2026-10-02 Threatist record created from CVE-2026-45408
References
More Dokku vulnerabilities
- TI-2026-39465 Dokku: OS Command Injection via app.json managed Cron CVSS 3.1CRITICAL 9.9
- TI-2026-33195 Dokku: Host RCE via Maliciously Named OpenResty Include Files Injected Through eval CVSS 3.1CRITICAL 9.0
- TI-2026-33194 Dokku: Arbitrary File Write via Tar Symlink Traversal in git:from-archive and certs:add CVSS 3.1CRITICAL 9.0
- TI-2026-33196 Dokku: Git Credentials in .netrc Stored World-Readable Due to Premature touch CVSS 3.1MEDIUM 5.5
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences