Golang glog: When logs are written to a widely-writable directory (the default), an unprivileged attacker may predict
Affects golang-glogSource GCVE Database
Not known to be exploited · CVSS 7.1 High.
Data as of 24 Nov 2026, 21:14 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 24% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 28 Jan 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSgolang-glogpkg:deb/ubuntu/golang-glog?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSgolang-glogpkg:deb/ubuntu/golang-glog?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSgolang-glogpkg:deb/ubuntu/golang-glog?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Ubuntu 18.04 LTSgolang-glogpkg:deb/ubuntu/golang-glog?arch=source&distro=bionicOther threats | Affected
| Fixed in– |
Ubuntu 16.04 LTSgolang-glogpkg:deb/ubuntu/golang-glog?arch=source&distro=xenialOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
When logs are written to a widely-writable directory (the default), an unprivileged attacker may predict a privileged process's log file path and pre-create a symbolic link to a sensitive file in its place. When that privileged process runs, it will follow the planted symlink and overwrite that sensitive file. To fix that, glog now causes the program to exit (with status code 2) when it finds that the configured log file already exists.
References
- ubuntu.com/security/CVE-2024-45339 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-45339 (opens in a new tab)
- github.com/golang/glog/pull/74 (opens in a new tab)
- github.com/golang/glog/pull/74/commits/b8741656e406e66d6992bc2c9575e460ecaa0ec2 (opens in a new tab)
- groups.google.com/g/golang-announce/c/H-Q4ouHWyKs (opens in a new tab)
- owasp.org/www-community/vulnerabilities/Insecure_Temporary_File (opens in a new tab)
- pkg.go.dev/vuln/GO-2025-3372 (opens in a new tab)