CVE-2024-45339

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

Published Jan 28, 2025 CVSS 3.1 · 7.1 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4056-1 golang-glog security update
EUVD EUVD EUVD-2025-0139 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.
Github GHSA Github GHSA GHSA-6wxm-mpqj-6jpf Insecure Temporary File usage in github.com/golang/glog
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00015}

epss

{'score': 0.00012}

Type Values Removed Values Added
First Time appeared Redhat ocp Tools
CPEs cpe:/a:redhat:ocp_tools:4.12::el8
Vendors & Products Redhat ocp Tools
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift_ai:2.16::el8
Type Values Removed Values Added
First Time appeared Redhat
Redhat openshift Ai
CPEs cpe:/a:redhat:openshift_ai:2.17::el8
Vendors & Products Redhat
Redhat openshift Ai
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-59
References
Metrics threat_severity

None

cvssV3_0

{'score': 7.1, 'vector': 'CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'}

threat_severity

Important

Type Values Removed Values Added
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.
Title Vulnerability when creating log files in github.com/golang/glog
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
Apr 30, 2026, 3:56 AM
Reserved
Aug 27, 2024, 7:41 PM
Status
Deferred
Published
Jan 28, 2025, 2:15 AM
Modified
Jun 17, 2026, 7:54 AM
Severity
Important
Public date
Jan 28, 2025, 1:03 AM