CVE-2024-45339

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

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.

7.1
CVSS
Severity: High
CVSS 3.1 •
EPSS 0.01%
Affected: github.com/golang/glog github.com/golang/glog
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-45339?
CVE-2024-45339 has been scored as a high severity vulnerability.
How to fix CVE-2024-45339?
To fix CVE-2024-45339, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-45339 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2024-45339 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-45339?
CVE-2024-45339 affects github.com/golang/glog github.com/golang/glog.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.