{
  "id": "CVE-2026-45408",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-45408",
  "published_at": "2026-06-26T16:19:56.118Z",
  "title": "Dokku: OS Command Injection via App Name in Git Pre-Receive Hook",
  "vendor": "dokku",
  "product": "dokku",
  "cvss": {
    "score": 9,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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 (\u003c\u003cEOF instead of \u003c\u003c'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.",
  "cwe": "CWE-78",
  "cpes": [
    "cpe:2.3:a:dokku:dokku:*:*:*:*:-:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 9
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "dokku",
        "product": "dokku",
        "ranges": [
          "\u003c 0.38.2"
        ],
        "fixed_in": [
          "0.38.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade dokku to 0.38.2 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/dokku/dokku/security/advisories/GHSA-9x85-7gxq-fcr3"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/dokku/dokku/pull/8590"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
