logo

CVE-2024-45339 github.com/golang/glog

Package

Manager: go
Name: github.com/golang/glog
Vulnerable Version: >=0 <1.2.4

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U

EPSS: 0.00041 pctl0.11353

Details

Insecure Temporary File usage in github.com/golang/glog 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.

Metadata

Created: 2025-01-28T17:29:03Z
Modified: 2025-02-18T22:36:58Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/01/GHSA-6wxm-mpqj-6jpf/GHSA-6wxm-mpqj-6jpf.json
CWE IDs: ["CWE-377", "CWE-61"]
Alternative ID: GHSA-6wxm-mpqj-6jpf
Finding: F028
Auto approve: 1