---
id: CVE-2024-45339
aliases:
  - GHSA-6wxm-mpqj-6jpf
  - GO-2025-3372
title: Insecure Temporary File usage in github.com/golang/glog
summary: Insecure Temporary File usage in github.com/golang/glog
severity: high
cvss: 7.1
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'
vendor: golang
product: github.com/golang/glog
ecosystem: go
affected:
  - github.com/golang/glog < 1.2.4
patched:
  - github.com/golang/glog 1.2.4
published: '2025-01-28'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:56.272730297Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-6wxm-mpqj-6jpf'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-45339'
  - url: 'https://github.com/golang/glog/pull/74'
  - url: >-
      https://github.com/golang/glog/pull/74/commits/b8741656e406e66d6992bc2c9575e460ecaa0ec2
  - url: 'https://github.com/golang/glog'
  - url: 'https://groups.google.com/g/golang-announce/c/H-Q4ouHWyKs'
  - url: 'https://lists.debian.org/debian-lts-announce/2025/02/msg00019.html'
  - url: 'https://owasp.org/www-community/vulnerabilities/Insecure_Temporary_File'
  - url: 'https://pkg.go.dev/vuln/GO-2025-3372'
tags:
  - osv
  - go
epss: 0.00318
epssPercentile: 0.24939
ingestedAt: '2026-09-12T03:13:01.761Z'
---

## Overview

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.

## Affected packages

- `github.com/golang/glog < 1.2.4`

## Remediation

Upgrade to a patched release:

- `github.com/golang/glog 1.2.4`
