CVEvulnerability
CVE-2024-45339
7.1 HIGH
Official page ↗
- Status
- Deferred
- Published
- 2025-01-28
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 (134c704f-9b21-4f2e-91b3-4a467353bcc0)
- 7.1 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
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.
References
- https://github.com/golang/glog/pull/74 github.com
- https://github.com/golang/glog/pull/74/commits/b8741656e406e66d6992bc2c9575e460ecaa0ec2 github.com
- https://groups.google.com/g/golang-announce/c/H-Q4ouHWyKs groups.google.com
- https://owasp.org/www-community/vulnerabilities/Insecure_Temporary_File owasp.org
- https://pkg.go.dev/vuln/GO-2025-3372 pkg.go.dev
- https://lists.debian.org/debian-lts-announce/2025/02/msg00019.html lists.debian.org