Skip to main content
← All vulnerabilities
CVE-2024-45339GO-2025-3372GHSA-6WXM-MPQJ-6JPF

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.2.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • github.com/golang/glog

    fixed in 1.2.4

  • github.com/golang/glogGo

    fixed in 1.2.4

References 5

GitHub · golang/glog

groups.google.com

owasp.org

pkg.go.dev