Skip to content

CVE-2024-45339 Vulnerability when creating log files in github.com/golang/glog

HighCVSS 7.1 EPSS 0.32%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebian

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.

Affected products

ProductAffected versionsFixed in
golang github.com/golang/glog(Go) < 1.2.4 1.2.4
cbl-mariner vitess(CBL-Mariner:2.0) < 17.0.7-4 17.0.7-4
cbl-mariner sriov-network-device-plugin(CBL-Mariner:2.0) < 3.6.2-8 3.6.2-8
azure linux sriov-network-device-plugin(Azure Linux:3.0) < 3.7.0-3 3.7.0-3
azure linux vitess(Azure Linux:3.0) < 19.0.4-4 19.0.4-4
debian/golang-glog(Debian:12) All versions No fix listed
debian/golang-glog(Debian:12) = 0.0~git20160126.23def4e-5 No fix listed
debian/golang-glog(Debian:12) = 1.1.2-1 No fix listed
debian/golang-glog(Debian:12) = 1.2.2-1 No fix listed
debian/golang-glog(Debian:12) = 1.2.4-1 No fix listed
debian/golang-glog(Debian:13) < 1.2.4-1 1.2.4-1
debian/golang-glog(Debian:14) < 1.2.4-1 1.2.4-1
ubuntu/golang-glog(Ubuntu:22.04) All versions No fix listed
ubuntu/golang-glog(Ubuntu:24.04) All versions No fix listed

References