CVE-2024-45339 Details
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.
A vulnerability exists in the Glog logging library for Go, prior to version 1.2.4, that allows an unprivileged attacker to predict the log file path of a privileged process and exploit this by creating a symbolic link to a sensitive file. When the privileged process executes, it follows the symlink and overwrites the targeted file. This issue arises because logs are typically written to directories that are widely writable by default, such as /tmp on Unix systems, creating an opportunity for abuse. The vulnerability is classified as an insecure temporary file vulnerability, a known risk on both Unix and Windows systems.
Users are advised to upgrade to Glog version 1.2.4 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jan 28, 2025CISA-ADP
Assessed Apr 29, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://lists.debian.org/debian-lts-announce/2025/02/msg00019.html | CVE | AdvisoryMailing ListRemedy |
| https://github.com/golang/glog/pull/74 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/golang/glog/pull/74/commits/b8741656e406e66d6992bc2c9575e460ecaa0ec2 | [email protected] | Source CodeVendor |
| https://groups.google.com/g/golang-announce/c/H-Q4ouHWyKs | [email protected] | |
| https://owasp.org/www-community/vulnerabilities/Insecure_Temporary_File | [email protected] | Technical Description |
| https://pkg.go.dev/vuln/GO-2025-3372 | [email protected] | AdvisoryVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| golang-glog | All versions |
CPE
Remediation
| |
| golang | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 17, 2025 | CVE Modified | CVE |
| Jan 28, 2025 | CVE Modified | CISA-ADP |
| Jan 28, 2025 | New CVE Received | [email protected] |
Volerion