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
- 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.
Workarounds
- Run chmod 0600 /home/dokku/.netrc manually after any execution of the git:auth command
Affected software
| Software | Affected versions |
|---|---|
DokkuServers and applications · cpe:a:dokku:dokku |
|
DokkuServers and applications · github:dokku/dokku |
|
About Dokku
docker-powered PaaS software
- 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
Website Source code Docker image
Vulnerabilities in Dokku
- In our list
- 6
- Published in the last 12 months
- 6
- Critical, last 12 months
- 3
- High, last 12 months
- 2
- Known exploited
- 0
- CVE-2026-86002Host Command Execution via eval of Unsanitized Docker Options in DOCKER_ARGSCritical 9.0 24 Sept 2026
- CVE-2026-54636OS Command Injection via app.json managed CronCritical 9.9 16 Jun 2026
- CVE-2026-45406Host RCE via Maliciously Named OpenResty Include Files Injected Through evalHigh 8.8 13 May 2026
- CVE-2026-45408OS Command Injection via App Name in Git Pre-Receive HookCritical 9.0 13 May 2026
- CVE-2026-45405Arbitrary File Write via Tar Symlink Traversal in git:from-archive and certs:addHigh 8.8 13 May 2026
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