Skip to main content

Dokku EUVDEUVD-2026-39804

| CVE-2026-45405 HIGH
Improper Link Resolution Before File Access (CWE-59)
2026-06-26 GitHub_M
8.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain Dokku deploy/cert command access
  2. Delivery
    Craft tar with out-of-tree symlink + payload entry
  3. Exploit
    Submit via git:from-archive or certs:add
  4. Execution
    tar follows symlink, writes ~/.ssh/authorized_keys
  5. Persist
    SSH in as dokku user
  6. Impact
    Full shell / host compromise

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
Exploitation Conditions

Exploitation requires the attacker to be able to invoke Dokku's git:from-archive or certs:add commands with an attacker-controlled tar/zip archive (PR:L - a deploy or certificate-management user, not an anonymous outsider), and the target must run a version prior to 0.38.2. The archive must contain a symlink entry pointing outside the temp directory plus a following entry that writes through it, and extraction must use GNU tar (which follows symlinks created mid-extraction). What limits exploitation: the attacker needs existing command/deploy access; the write is confined to paths writable by the dokku user; and patched 0.38.2 installs reject such archives outright. No user interaction is required (UI:N).

Impact

The supplied CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N, C:H/I:H/A:H, score 8.8) describes a low-privilege, low-complexity, network-reachable flaw with total impact, consistent with the SSVC 'Technical Impact: total' rating. However, the signals temper the urgency: SSVC marks Exploitation as none and Automatable as no, EPSS data was not provided, and KEV does not list this CVE - so there is no public exploit identified at time of analysis and no evidence of active exploitation. The PR:L requirement is meaningful: the attacker must already be able to invoke Dokku deploy/cert commands (i.e. an authenticated deploy user or someone who can supply an archive URL to such a command), so this is primarily a privilege-escalation-to-host-shell path rather than a fully anonymous internet exploit. Net assessment: a high-severity, credible issue worth prompt patching for any multi-tenant or shared Dokku host, but the lack of automation and existing-access requirement make widespread opportunistic exploitation less likely than the raw 8.8 suggests.

Exploit ScenarioDerived

A user with permission to deploy apps (or to provide an archive URL to git:from-archive) crafts a tar archive whose first entry is a symlink named, say, 'link' that points to /home/dokku/.ssh, followed by an entry 'link/authorized_keys' containing the attacker's public key. When Dokku extracts the archive, GNU tar follows the symlink and writes authorized_keys outside the temp directory, granting the attacker SSH shell access as the dokku user. No public proof-of-concept is identified at time of analysis, but the technique is well understood and the low attack complexity (AC:L) makes it reliable once command access exists.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – Jun 26, 2026

Arbitrary file write in Dokku before 0.38.2 lets an attacker with deploy-level access escalate to full shell access on the host. The git:from-archive and certs:add commands extract attacker-supplied tar/zip archives without sanitizing member paths, and because GNU tar creates and then follows symlinks during extraction, a crafted archive can plant files anywhere the dokku user can write - most damagingly ~/.ssh/authorized_keys. There is no public exploit identified at time of analysis and CISA SSVC records exploitation as none, but the technical impact is rated total.

Earlier versions of this analysis (2)
v2 Jun 26, 2026 - 19:14 cvss changed CVSS 8.8

Arbitrary file write in Dokku, an open-source Docker-powered PaaS, allows an attacker with deploy-level access to escalate to a full shell on the host. Versions prior to 0.38.2 extract user-supplied tar/zip archives via the git:from-archive and certs:add commands without sanitizing member paths, and GNU tar follows attacker-planted symlinks during extraction, letting files be written anywhere the dokku user can write (e.g. overwriting ~/.ssh/authorized_keys). There is no public exploit identified at time of analysis, and SSVC records exploitation status as none, but the technical impact is rated total and a vendor patch (0.38.2) is available.

v1 Jun 26, 2026 - 17:26 CVSS 9.0

Arbitrary file write in Dokku PaaS before 0.38.2 allows a low-privileged deploy user to overwrite any file writable by the dokku account - including ~/.ssh/authorized_keys - by feeding a crafted tar/zip to the git:from-archive or certs:add commands. Because GNU tar creates and then follows symlinks mid-extraction, attacker-controlled archive members escape the temporary directory and pivot to an unrestricted interactive shell. No public exploit identified at time of analysis; the issue is fixed in 0.38.2, which adds pre-extraction validation rejecting absolute paths, parent-directory traversal, and symlinks that escape the extraction root.

RemediationAI

Vendor-released patch: upgrade to Dokku 0.38.2 or later, which validates archives before extraction and rejects absolute paths, parent-directory (..) traversal, and symlinks pointing outside the extraction directory, as documented in GHSA-j6qq-xg73-ghqg and PR #8591. Until you can upgrade, restrict who can run git:from-archive and certs:add and never feed untrusted or externally-fetched archives to these commands, since exploitation depends on supplying a malicious archive; treat deploy/cert access as equivalent to host shell access. After patching you can also tune the new safety limits via dokku git:set --global archive-max-size and archive-max-files (defaults 1 GiB and 10000 entries) to constrain archive-bomb abuse, noting that overly tight values may reject legitimate large deployments. Review ~/.ssh/authorized_keys and other files writable by the dokku user for unexpected modifications, as this is the documented escalation target.

Affected VersionsENISA

dokku < 0.38.2

Affected Packages

euvd dokku fix: 0.38.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Dokku is a Docker-powered, self-hosted PaaS (Heroku-style) that lets users deploy apps and manage TLS certificates via shell-style subcommands. The affected workflows are git:from-archive (deploy from a tar/zip) and certs:add (load a certificate bundle), both of which pipe a user-supplied archive into GNU tar for extraction into a temporary directory. The root cause is CWE-59 (link following / improper link resolution): tar materializes symlink entries as it extracts and then writes subsequent entries through those links. By ordering an archive so an early entry creates a symlink pointing outside the temp directory (e.g. to the dokku user's home) and a later entry writes through that link, the extraction escapes its intended directory. CPE cpe:2.3:a:dokku:dokku confirms the dokku application itself is the affected component; the fix (PR #8591) adds a pre-extraction validator that rejects absolute paths, .. traversal, and out-of-tree symlinks, plus archive-bomb limits (archive-max-size, archive-max-files).

Know when Dokku gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY CRITICAL
NVD 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

Attacker needs deploy/cert command access so PR:L; archive can be remotely supplied (AV:N), extraction is deterministic (AC:L), and arbitrary file write to authorized_keys yields full C/I/A.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

5
Analysis Updated
Jun 26, 2026 - 19:15 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 26, 2026 - 19:14 vuln.today
v2 - CVSS changed
Severity Changed
Jun 26, 2026 - 19:07 NVD
CRITICAL HIGH
CVSS changed
Jun 26, 2026 - 19:07 NVD
9.0 (CRITICAL) 8.8 (HIGH)
Patch available
Jun 26, 2026 - 18:02 EUVD

DescriptionNVD

Dokku is a docker-powered PaaS. Prior to 0.38.2, the git:from-archive and certs:add commands extract user-supplied tar/zip archives into temporary directories without sanitizing member paths or preventing symlink traversal. GNU tar creates symlinks during extraction and follows them for subsequent entries, allowing an attacker to write arbitrary files anywhere writable by the dokku user - including overwriting ~/.ssh/authorized_keys to gain unrestricted shell access. This vulnerability is fixed in 0.38.2.

Executive ViewAI

Why It Matters

Dokku versions before 0.38.2 contain an arbitrary file write vulnerability that allows attackers with deploy-level credentials to escalate privileges to complete host control. Organizations using Dokku for application deployment face full server compromise if deploy credentials are exposed, misused internally, or leaked through CI/CD pipeline compromise. Remediation requires immediate patching and access control review.

Business Impact: High
Compensating Controls

Apply vendor patch. Until systems are patched: restrict deploy-level credentials to minimal required personnel, audit and monitor ~/.ssh/authorized_keys files for unauthorized entries, implement file integrity monitoring on Dokku host systems, and limit network access to deployment interfaces.

Threat Intelligence Overview

EPSS Score
0.3%
Top 79% exploitable
Prevalence
Medium
popular self-hosted Docker PaaS, modest real-world enterprise footprint
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy