CVE-2024-45339Vulnerability when creating log files in github.com/golang/glog
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.
What to do
Fixed builds are available from Debian, Go: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | golang-glog | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | golang-glog | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | golang-glog | Under investigation | UBUNTU-CVE-2024-45339 | |
| Ubuntu 22.04 | golang-glog | Under investigation | UBUNTU-CVE-2024-45339 | |
| Ubuntu 20.04 | golang-glog | Fix pending | UBUNTU-CVE-2024-45339 | |
| Ubuntu 18.04 | golang-glog | Fix pending | UBUNTU-CVE-2024-45339 | |
| Ubuntu 16.04 | golang-glog | Fix pending | UBUNTU-CVE-2024-45339 | |
| Debian 14 | golang-glog | Fixed | 1.2.4-1 | DEBIAN-CVE-2024-45339 |
| Debian 13 | golang-glog | Fixed | 1.2.4-1 | DEBIAN-CVE-2024-45339 |
| Debian 12 | golang-glog | Fix pending | DEBIAN-CVE-2024-45339 | |
| Go library | github.com/golang/glog | Fixed | 1.2.4 | GHSA-6wxm-mpqj-6jpf |
What the vendor says
As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- github.com/golang/glog: affected: before 1.2.4; fixed in
1.2.4
References
- https://github.com/golang/glog/pull/74/commits/b8741656e406e66d6992bc2c9575e460ecaa0ec2
- https://github.com/golang/glog/pull/74
- https://groups.google.com/g/golang-announce/c/H-Q4ouHWyKs
- https://owasp.org/www-community/vulnerabilities/Insecure_Temporary_File
- https://pkg.go.dev/vuln/GO-2025-3372
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.