NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Go

CVE-2024-45339: Insecure Temporary File usage in github.com/golang/glog

mediumCVSS 4.0 4.1 · 3.1 7.1GHSA-6wxm-mpqj-6jpf

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.

Published Jan 28, 2025 · Updated Feb 18, 2025

Affected packages

github.com/golang/glog

Ecosystem
Go
Affected
< 1.2.4
Fixed in
1.2.4
Check
go list -m github.com/golang/glog

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology