CVE-2024-45339
HIGH 7.1CVSS 3.1Insecure Temporary File usage in github.com/golang/glog
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.
- Published
- 28 Jan 2025
- Last modified
- 10 Sep 2026
- Assigned by
- security@golang.org
- NVD status
- Deferred
- Weakness
- CWE-377CWE-61
- Also known as
- GHSA-6wxm-mpqj-6jpfGO-2025-3372
- Sources
- NVDJSONOSV GHSA-6wxm-mpqj-6jpfJSONOSV GO-2025-3372JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/golang/glog | < 1.2.4 | 1.2.4 |
References
- https://github.com/golang/glog/pull/74 · WEB, FIX
- https://github.com/golang/glog/pull/74/commits/b8741656e406e66d6992bc2c9575e460ecaa0ec2 · WEB, FIX
- 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
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 28 Jan 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Jan 2025)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 28 Jan 2025)