SecurityContext

CVE-2024-45339: Glog - Symlink Attack

  • Cve: CVE-2024-45339
  • Name: Glog - Symlink Attack
  • 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.
  • Impact: Attackers can overwrite sensitive files via symlink attacks, potentially leading to privilege escalation or data tampering.
  • Remediation: Update to the latest version where glog exits if log file already exists to prevent symlink attacks.
  • Vulnerability type: symlink_attack
  • Vulnerability impact: file_system_write, data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.1
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
  • Epss score: 0.00316
  • Epss percentile: 0.24916
  • Assignee: [email protected]
  • Published at: 2025-01-28T02:15:28Z
  • Age in days: 665
  • Modified at: 2026-06-17T07:54:03Z
  • References total: 6
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-45339
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-377—
CWE-61—

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://github.com/golang/glog/pull/74
https://github.com/golang/glog/pull/74/commits/b8741656e406e66d6992bc2c9575e460ecaa0ec2
https://groups.google.com/g/golang-announce/c/H-Q4ouHWyKs
https://owasp.org/www-community/vulnerabilities/Insecure_Temporary_File
https://pkg.go.dev/vuln/GO-2025-3372
https://lists.debian.org/debian-lts-announce/2025/02/msg00019.html

Projects

RepositoryLink kindsIndexedUrl
golang/glogpackage, pullyes/v1/repositories/golang/glog

Index

  • Repositories: 160
  • Repositories high signal: 25
  • Packages: 1

Exploitation

  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts