{"id":"CVE-2026-45408","state":"PUBLISHED","title":"Dokku: OS Command Injection via App Name in Git Pre-Receive Hook","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.","publishedAt":"2026-06-26T16:19:56.118Z","updatedAt":"2026-06-26T18:41:32.788Z","severity":{"score":9,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["dokku dokku"],"affected":[{"vendor":"dokku","product":"dokku","versions":[{"version":"< 0.38.2","status":"affected"}]}],"references":["https://github.com/dokku/dokku/security/advisories/GHSA-9x85-7gxq-fcr3","https://github.com/dokku/dokku/pull/8590"],"weaknesses":["CWE-78"],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/45xxx/CVE-2026-45408.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-45408","state":"PUBLISHED","datePublished":"2026-06-26T16:19:56.118Z","dateUpdated":"2026-06-26T18:41:32.788Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-05-12T01:48:40.452Z"},"containers":{"cna":{"title":"Dokku: OS Command Injection via App Name in Git Pre-Receive Hook","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"dokku","product":"dokku","versions":[{"version":"< 0.38.2","status":"affected"}]}],"references":[{"url":"https://github.com/dokku/dokku/security/advisories/GHSA-9x85-7gxq-fcr3","name":"https://github.com/dokku/dokku/security/advisories/GHSA-9x85-7gxq-fcr3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/dokku/dokku/pull/8590","name":"https://github.com/dokku/dokku/pull/8590","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-78","lang":"en","description":"CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-06-26T16:19:56.118Z"},"source":{"advisory":"GHSA-9x85-7gxq-fcr3","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-06-26T18:14:28.682565Z","id":"CVE-2026-45408","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-06-26T18:41:32.788Z"}}]}}}