All vulnerabilities

Servers and applications

CVE-2026-45407

Git Credentials in .netrc Stored World-Readable Due to Premature touch

Severity
Medium 5.5
Published
13 May 2026
Last changed
26 Jun 2026
Added to UpHeron
1 Nov 2026
Fixed in
0.38.2
Exploit chance
0.1% in the next 30 daysHigher than 2% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Insufficiently protected credentials (CWE-522)
Attack
Needs local access · Needs a user account · No user action needed
Attacker can
Read data
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Also known as
GHSA-xh7p-9crg-pchr
Sources
NVD, Project advisories (GitHub)

Description

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 security issue applies to any Dokku installation where the git:auth command is used to manage the netrc file and can be exploited by other users with local access to the Dokku host.

From dokku/dokku's security advisory.

Workarounds

  • Run chmod 0600 /home/dokku/.netrc manually after any execution of the git:auth command
Workarounds as given by dokku/dokku's security advisory.

Affected software

SoftwareAffected versions
DokkuServers and applications · cpe:a:dokku:dokku
  • Every version before 0.38.2
DokkuServers and applications · github:dokku/dokku
  • Every version before 0.38.2

About Dokku

docker-powered PaaS software

From Wikidata, CC0 1.0.
Docker Hub pulls
444,121Docker Hub, 15 Nov 2026
GitHub stars
32,229GitHub, 15 Nov 2026
Forks
2,096GitHub, 15 Nov 2026
Latest release
v0.38.34GitHub, 15 Nov 2026
Released
30 Oct 2026GitHub
License
MIT LicenseWikidata
First published on GitHub
8 Jun 2013GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-45407
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-45407
  • GitHub Advisory Database https://github.com/advisories/GHSA-xh7p-9crg-pchr
  • github.com https://github.com/dokku/dokku/security/advisories/GHSA-xh7p-9crg-pchr