---
id: CVE-2026-86469
title: A flaw was found in GLib2
summary: >-
  A flaw was found in GLib2. When g_file_replace() is used with
  G_FILE_CREATE_REPLACE_DESTINATION and creating the .goutputstream-XXXXXX
  temporary file fails, the library unlinks the destination and recreates it
  without exclusive creation …
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:L'
cwe:
  - CWE-59
vendor: Red Hat
product: glib2
affected:
  - glib2 (all versions)
  - mingw-glib2 (all versions)
  - glib2 (all versions)
  - glib2 (all versions)
  - glib2 (all versions)
  - mingw-glib2 (all versions)
  - glib2 (all versions)
  - mingw-glib2 (all versions)
  - glib2 (all versions)
  - openshift/ose-rhel-coreos-8 (all versions)
  - openshift/ose-rhel-coreos-9 (all versions)
published: '2026-09-07'
updated: '2026-09-08'
sourceUpdated: '2026-09-08T19:08:15.590'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-86469'
references:
  - url: 'https://access.redhat.com/security/cve/CVE-2026-86469'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2473839'
    label: secalert@redhat.com
  - url: >-
      https://gitlab.gnome.org/GNOME/glib/-/blob/main/gio/glocalfileoutputstream.c
    label: secalert@redhat.com
  - url: 'https://gitlab.gnome.org/GNOME/glib/-/work_items/4044'
    label: secalert@redhat.com
  - url: 'https://gitlab.gnome.org/GNOME/glib/-/work_items/4044'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-86469.json
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-86469'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-86469'
tags:
  - nvd
  - cve.org
  - exploit-available
  - csaf
  - vex
  - red-hat
epss: 0.00141
epssPercentile: 0.02794
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-08T12:46:10.415291Z'
ingestedAt: '2026-09-08T15:33:26.979Z'
---

## Overview

A flaw was found in GLib2. When g_file_replace() is used with G_FILE_CREATE_REPLACE_DESTINATION and creating the .goutputstream-XXXXXX temporary file fails, the library unlinks the destination and recreates it without exclusive creation or symlink protection. A local attacker who can write to the destination directory can win that race and redirect the write to another file.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Moderate · affected: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, Red Hat Hardened Images, … · no fix planned: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, … · updated 2026-09-08 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-86469.json)
