Vulnerability when creating log files in github.com/golang/glog
Overview
Source
ID
GO-2025-3372
Aliases
CVE-2024-45339
GHSA-6wxm-mpqj-6jpf
Affected package
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.
Impact
Reference links
Summary
19.51k
Total packages affected
help_outline
Packages with at least one version that is affected by the advisory or has an affected dependency.
2.27k
Packages with a known fix
help_outline
Packages with versions affected by the advisory that have a greater version that is not affected.
1.45%
Total ecosystem affected
help_outline
The proportion of packages in the ecosystem that are affected by the advisory (fixed or not).
Affected Version: Introduced: 0, Fixed: 1.2.4