CVEfocus › CVE database › CVE-2024-45339

CVE-2024-45339Vulnerability when creating log files in github.com/golang/glog

CVSS 7.1 HighEPSS 0.3% (higher than 20% of CVEs)Published 2025-01-28Updated 2026-04-30Assigner: Go

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.

What to do

Fixed builds are available from Debian, Go: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
4Fix pending
2Under investigation
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04golang-glogNot affected
vulnerable_code_not_present
Ubuntu 25.10golang-glogNot affected
vulnerable_code_not_present
Ubuntu 24.04golang-glogUnder investigationUBUNTU-CVE-2024-45339
Ubuntu 22.04golang-glogUnder investigationUBUNTU-CVE-2024-45339
Ubuntu 20.04golang-glogFix pendingUBUNTU-CVE-2024-45339
Ubuntu 18.04golang-glogFix pendingUBUNTU-CVE-2024-45339
Ubuntu 16.04golang-glogFix pendingUBUNTU-CVE-2024-45339
Debian 14golang-glogFixed1.2.4-1DEBIAN-CVE-2024-45339
Debian 13golang-glogFixed1.2.4-1DEBIAN-CVE-2024-45339
Debian 12golang-glogFix pendingDEBIAN-CVE-2024-45339
Go librarygithub.com/golang/glogFixed1.2.4GHSA-6wxm-mpqj-6jpf

What the vendor says

As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.