Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain local shell account on Dokku host
-
DeliveryVerify git:auth has been run (check for $DOKKU_ROOT/.netrc existence)
-
ExploitRead world-readable .netrc file at 0644 permissions
-
ExecutionExtract plaintext git credentials (host/username/password)
-
PersistAuthenticate to external git repositories with stolen credentials
-
ImpactAccess or exfiltrate repository contents
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V6 - Authentication Credential protection in transit/storage
|
| Exploitation Conditions | Three conditions must all be true for exploitation: (1) Dokku version prior to 0.38.2 must be installed; (2) the Dokku administrator must have previously executed the git:auth command at least once, which creates $DOKKU_ROOT/.netrc - without this step, no .netrc file exists and there is nothing to read; (3) the attacker must hold a local shell account on the same host and have execute (traverse) permission on the Dokku home directory. The CVSS vector PR:L confirms a low-privilege local account suffices - no root or Dokku-group membership is required beyond directory traversal. Exploitation is inherently limited to the local host and cannot be performed remotely. Single-administrator deployments where no other users have shell access are not practically at risk despite the valid finding. |
| Impact | The CVSS 3.1 score of 5.0 with vector AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N is well-calibrated for this vulnerability. The local attack vector (AV:L) and low-privilege requirement (PR:L) materially constrain the attack surface: exploitation requires an attacker with an existing shell account on the Dokku host and the ability to traverse the Dokku home directory. UI:R reflects that a Dokku administrator must have previously executed git:auth at least once to create the vulnerable .netrc file. The High confidentiality impact (C:H) is justified because .netrc stores credentials in cleartext and full credential disclosure is the direct outcome. No EPSS data was supplied in the input, so exploitation probability cannot be quantified from that signal. There is no CISA KEV listing and no public exploit code identified, placing this firmly in the theoretical-but-trivially-exploitable category for environments where the conditions are met. Real-world risk is highest on shared Dokku hosts or multi-tenant deployment scenarios where multiple local users coexist; single-administrator servers with no other shell users have negligible practical risk despite the valid finding. |
| Exploit ScenarioDerived | A local user on a multi-tenant Dokku server lists or reads $DOKKU_ROOT/.netrc directly - no exploit code required, only standard file read access. The file, left world-readable at 0644 by the touch pre-creation, yields plaintext git credentials for any configured hosts (e.g., GitHub, GitLab, internal Gitea). The attacker then uses those credentials to clone, push, or exfiltrate source code from external repositories associated with the Dokku-hosted applications. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 26, 2026
Insufficiently protected credential storage in Dokku prior to 0.38.2 exposes git authentication secrets stored in $DOKKU_ROOT/.netrc to any local user who can traverse the Dokku home directory. The git:auth command pre-creates the .netrc file using bash's touch, which applies the process umask (0644) before the netrc binary runs - defeating the netrc binary's own 0600 enforcement because the file already exists at write time. No public exploit code exists and the vulnerability is not in CISA KEV, but the confidentiality impact is rated High given that plaintext git credentials (hostnames, usernames, passwords) are directly readable without any special tooling.
RemediationAI
Upgrade Dokku to version 0.38.2 or later, which is the vendor-released patch confirmed by the GitHub security advisory GHSA-xh7p-9crg-pchr and the merged PR at https://github.com/dokku/dokku/pull/8589. The upgrade automatically remediates existing world-readable .netrc files via the migrate_netrc_permissions() migration hook that runs chmod 600 and chown on any pre-existing .netrc at install time. For systems that cannot be immediately upgraded, manually enforce correct permissions with chmod 600 $DOKKU_ROOT/.netrc && chown dokku:dokku $DOKKU_ROOT/.netrc; note this is a temporary measure only, as any subsequent invocation of git:auth on an unpatched version will not re-secure the file. An additional compensating control is to restrict local user access to the Dokku home directory (chmod 700 $DOKKU_ROOT), though this may break Dokku's own operational assumptions and should be tested before applying in production.
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 (cpe:2.3:a:dokku:dokku:*:*:*:*:*:*:*:*) is a Docker-powered PaaS that stores git repository authentication credentials in a standard Unix .netrc file located at $DOKKU_ROOT/.netrc. The .netrc format is a plaintext credential store consumed by git, curl, and other network clients to authenticate to remote hosts. CWE-522 (Insufficiently Protected Credentials) is the root cause class: the vulnerable code path in plugins/git/internal-functions calls bash's built-in touch to pre-create the file, which inherits the shell's default umask of 0022, resulting in mode 0644 (owner read/write, group read, other read). Because the file already exists when the netrc utility subsequently writes credentials, the netrc binary's own 0600 permission logic applies only to newly created files and is silently bypassed. The fix in PR #8589 removes the touch call entirely and introduces fn-git-auth-secure-netrc(), which explicitly runs chmod 600 and chown after every git:auth operation, plus a migrate_netrc_permissions() function in the install hook that retroactively repairs pre-existing world-readable .netrc files on upgrade.
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:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Local-only exploitation (AV:L) requires an existing shell account (PR:L) and a prior admin git:auth invocation (UI:R); only plaintext credential confidentiality is impacted (C:H, I:N, A:N).
Primary rating from Vendor (GitHub_M).
CVSS VectorNVD
Lifecycle Timeline
2DescriptionNVD
Dokku is a docker-powered PaaS. Prior to 0.38.2, the git:auth command creates $DOKKU_ROOT/.netrc using bash's touch command, which applies the default umask of 0644. This pre-creation defeats the netrc binary's built-in 0600 permission setting, leaving git credentials readable by any local user who can traverse the dokku home directory. This vulnerability is fixed in 0.38.2.
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
Arbitrary file write in Dokku before 0.38.2 lets an attacker with deploy-level access escalate to full shell access on t
OS command execution on the Dokku host is possible through the openresty-vhosts plugin in versions prior to 0.38.2, wher
EUVD-2026-39802
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB