Insecure Temporary File usage in github.com/golang/glog

Overview

Source
ID
GHSA-6wxm-mpqj-6jpf
Aliases
CVE-2024-45339
GO-2025-3372
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.

Summary

19.51k
Total packages affected
Packages with at least one version that is affected by the advisory or has an affected dependency.
2.27k
Packages with a known fix
Packages with versions affected by the advisory that have a greater version that is not affected.
1.45%
Total ecosystem affected
The proportion of packages in the ecosystem that are affected by the advisory (fixed or not).
Affected Version: Introduced: 0, Fixed: 1.2.4
Patched/Unaffected
v1.2.4
Affected
v1.2.3
v1.2.2
v1.2.1
v1.2.0
v1.1.2
v1.1.1
v1.1.0
v1.0.0