製品・ソフトウェアに関する情報
DokkuにおけるOS コマンドインジェクションの脆弱性
Title DokkuにおけるOS コマンドインジェクションの脆弱性
Summary

DokkuはDockerを利用したPaaSです。0.38.2より前のバージョンでは、アプリ名のバリデーションに使用されている正規表現(^[a-z0-9][^/:_A-Z]*$)がシェルのメタキャラクターを許可していました。認証済みユーザーが細工されたアプリ名でgitリモートにプッシュすると、その名前がbashのpre-receiveフックスクリプト内に引用符なしで埋め込まれます(fn-git-create-hook()関数のplugins/git/internal-functionsの378行目で、引用符なしのheredoc EOFとしてです)。git push時にbashはセミコロンをコマンド区切り文字として解釈し、dokkuユーザーとして任意のコマンドを実行可能になります。この脆弱性は0.38.2で修正されました。

Possible impacts ・当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 ・当該ソフトウェアが完全に停止する可能性があります。 
Solution

ベンダ情報を参照して適切な対策を実施してください。

Publication Date June 26, 2026, midnight
Registration Date June 29, 2026, 11:24 a.m.
Last Update June 29, 2026, 11:24 a.m.
CVSS3.0 : 緊急
Score 9
Vector CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
Affected System
Dokku
Dokku 0.38.2 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2026年06月29日]
  掲載
June 29, 2026, 11:24 a.m.

NVD Vulnerability Information
CVE-2026-45408
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.

Publication Date June 27, 2026, 2:16 a.m.
Registration Date June 27, 2026, 4:35 a.m.
Last Update June 27, 2026, 3:55 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:dokku:dokku:*:*:*:*:-:*:*:* 0.38.2
Related information, measures and tools
Common Vulnerabilities List