CVE-2024-45339Vulnerability when creating log files in github.com/golang/glog
- 7.1HighCVSS base score
- 0.32%Exploitation in 30 daysEPSS · top 75% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By Go
- 5 months later
· 5 months later
Published
- 15 months later
· 15 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | High7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| NVDNVD · Deferred | 3.1 | High7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
- EPSS (exploitation in 30 days)
- 0.32% · top 75% of all CVEs (14 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.1.
Affected products
github.com/golang/glog · github.com/golang/glog
- affected < 1.2.4
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Gogithub.com/golang/glogGHSA-6wxm-mpqj-6jpf (opens in a new tab)
References
References6
- https://github.com/golang/glog/pull/74/commits/b8741656e406e66d6992bc2c9575e460ecaa0ec2 (opens in a new tab)
- https://github.com/golang/glog/pull/74 (opens in a new tab)
- https://groups.google.com/g/golang-announce/c/H-Q4ouHWyKs (opens in a new tab)
- https://owasp.org/www-community/vulnerabilities/Insecure_Temporary_File (opens in a new tab)
- https://pkg.go.dev/vuln/GO-2025-3372 (opens in a new tab)
- https://lists.debian.org/debian-lts-announce/2025/02/msg00019.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-0139 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-6wxm-mpqj-6jpf (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-45339)Record last updated .