CVE-2024-45339

Vulnerability when creating log files in github.com/golang/glog

State
Published
Severity
7.1 High
Published
Jan 28, 2025
Updated
Apr 30, 2026
Reserved
Aug 27, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.1 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:NCISA-ADP

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
github.com/golang/gloggithub.com/golang/glog
  • before 1.2.4Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.