Skip to main content

Dokku CVE-2026-45407

| EUVDEUVD-2026-39802 MEDIUM
Insufficiently Protected Credentials (CWE-522)
2026-06-26 GitHub_M
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Obtain local shell account on Dokku host
  2. Delivery
    Verify git:auth has been run (check for $DOKKU_ROOT/.netrc existence)
  3. Exploit
    Read world-readable .netrc file at 0644 permissions
  4. Execution
    Extract plaintext git credentials (host/username/password)
  5. Persist
    Authenticate to external git repositories with stolen credentials
  6. Impact
    Access 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

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 (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

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

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).

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

Primary rating from Vendor (GitHub_M).

CVSS VectorNVD

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

Lifecycle Timeline

2
CVSS changed
Jun 26, 2026 - 19:07 NVD
5.0 (MEDIUM) 5.5 (MEDIUM)
Patch available
Jun 26, 2026 - 18:02 EUVD

DescriptionNVD

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

EPSS Score
0.1%
Top 99% exploitable
Prevalence
Low
self-hosted niche PaaS, primarily used by small developer teams
Data Quality
5 sources
Confidence: Medium

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
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