Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
dokku dokku
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Dokku Dokku是Dokku团队的一个云平台部署工具。 Dokku 0.38.2之前版本存在命令注入漏洞,该漏洞源于应用名称验证正则表达式允许shell元字符,且应用名称在fn-git-create-hook()函数中被未引用嵌入到bash pre-receive hook脚本,可能导致经过身份验证的用户推送包含特制应用名称的git远程仓库时,bash将分号解释为命令分隔符,从而以dokku用户身份执行任意命令。

CVSS 9.0 · Critical EPSS 0.42% · P34

Affected Version Matrix 1

VendorProduct Version RangeStatus
dokku dokku < 0.38.2 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-45408

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Dokku: OS Command Injection via App Name in Git Pre-Receive Hook
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
Source: CVE Program / CVE List V5
Vulnerability Title
Dokku 命令注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Dokku Dokku是Dokku团队的一个云平台部署工具。 Dokku 0.38.2之前版本存在命令注入漏洞,该漏洞源于应用名称验证正则表达式允许shell元字符,且应用名称在fn-git-create-hook()函数中被未引用嵌入到bash pre-receive hook脚本,可能导致经过身份验证的用户推送包含特制应用名称的git远程仓库时,bash将分号解释为命令分隔符,从而以dokku用户身份执行任意命令。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
dokku dokku < 0.38.2 -

II. Public POCs for CVE-2026-45408

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 8282 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-45408

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-45408 (1)

Vendor Advisories for CVE-2026-45408 (1)

Same Patch Batch · dokku · 2026-06-26 · 5 CVEs total

CVE-2026-45405 9.0 CRITICAL Dokku: Arbitrary File Write via Tar Symlink Traversal in git:from-archive and certs:add
CVE-2026-45406 9.0 CRITICAL Dokku: Host RCE via Maliciously Named OpenResty Include Files Injected Through eval
CVE-2026-54636 9.0 CRITICAL Dokku: OS Command Injection via app.json managed Cron
CVE-2026-45407 5.0 MEDIUM Dokku: Git Credentials in .netrc Stored World-Readable Due to Premature touch

IV. Related Vulnerabilities

V. Comments for CVE-2026-45408

No comments yet


Leave a comment