Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain Dokku deploy/cert command access
-
DeliveryCraft tar with out-of-tree symlink + payload entry
-
ExploitSubmit via git:from-archive or certs:add
-
Executiontar follows symlink, writes ~/.ssh/authorized_keys
-
PersistSSH in as dokku user
-
ImpactFull 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – 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)
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.
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
Affected Packages
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
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorNVD
Lifecycle Timeline
5DescriptionNVD
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.
Articles & Coverage 1
Executive ViewAI
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Container-to-host command execution in Dokku's cron plugin (versions prior to 0.38.7) lets an actor who can control an a
OS command injection in Dokku (the Docker-powered self-hosted PaaS) prior to version 0.38.2 allows an authenticated user
OS command execution on the Dokku host is possible through the openresty-vhosts plugin in versions prior to 0.38.2, wher
Insufficiently protected credential storage in Dokku prior to 0.38.2 exposes git authentication secrets stored in $DOKKU
EUVD-2026-39804
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB