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

- Severity: High 7.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-01)
- Published: 2025-01-28T00:47:30.000Z
- Modified: 2026-09-10T03:50:56.272Z
- Also known as: GHSA-6wxm-mpqj-6jpf, GO-2025-3372
- Related: CGA-rp99-g6qw-fvgx, RHSA-2025:2223
- Weaknesses: CWE-61, CWE-377
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Go

## 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.

(As written by CVE List.)

## Affected

- github.com/golang/glog: before 1.2.4
- github.com/golang/glog (Go): before 1.2.4

## Every score

- CISA-ADP: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.1 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U`

## References

- <https://github.com/golang/glog/pull/74/commits/b8741656e406e66d6992bc2c9575e460ecaa0ec2> (fix, web)
- <https://github.com/golang/glog/pull/74> (fix, web)
- <https://groups.google.com/g/golang-announce/c/H-Q4ouHWyKs> (web)
- <https://owasp.org/www-community/vulnerabilities/Insecure_Temporary_File> (web)
- <https://pkg.go.dev/vuln/GO-2025-3372> (web)
- <https://lists.debian.org/debian-lts-announce/2025/02/msg00019.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-45339> (advisory)
- <https://github.com/golang/glog> (package)

## Sources

- CVE List: [CVE-2024-45339](https://www.cve.org/CVERecord?id=CVE-2024-45339), CVE Terms of Use, modified 2026-04-30
- GitHub Advisory Database: [GHSA-6wxm-mpqj-6jpf](https://github.com/advisories/GHSA-6wxm-mpqj-6jpf), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2025-3372](https://pkg.go.dev/vuln/GO-2025-3372), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2024-45339](https://nvd.nist.gov/vuln/detail/CVE-2024-45339), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-45339 · Whole record: https://cve.day/CVE-2024-45339.json · Rebuilt by cve.day 2026-11-25T22:58:51.269Z
