cve/2024/CVE-2024-45339.md

18 lines
970 B
Markdown
Raw Normal View History

2025-09-29 16:08:36 +00:00
### [CVE-2024-45339](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-45339)
![](https://img.shields.io/static/v1?label=Product&message=github.com%2Fgolang%2Fglog&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=0%3C%201.2.4%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-61%3A%20UNIX%20Symbolic%20Link%20(Symlink)%20Following&color=brighgreen)
### 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.
### POC
#### Reference
No PoCs from references.
#### Github
- https://github.com/k37y/gvs