Glib2.0: A flaw was found in GLib2. When g_file_replace() is used with G_FILE_CREATE_REPLACE_DESTINATION and creating the .goutputstream-XXXXXX temporary… (CVE-2026-86469)
Description
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.
CVSS v3.1
Score 5.3medium
Affected software
pkg:deb/ubuntu/glib2.0?arch=source&distro=esm-infra-legacy/trustypkg:deb/ubuntu/glib2.0?arch=source&distro=esm-infra-legacy/xenialpkg:deb/ubuntu/glib2.0?arch=source&distro=esm-infra/bionicpkg:deb/ubuntu/glib2.0?arch=source&distro=esm-infra/focalpkg:deb/ubuntu/glib2.0?arch=source&distro=jammypkg:deb/ubuntu/glib2.0?arch=source&distro=noblepkg:deb/ubuntu/glib2.0?arch=source&distro=resoluteRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The GLib2 library contains a flaw in the g_file_replace() function when invoked with the G_FILE_CREATE_REPLACE_DESTINATION flag. If the creation of the temporary file .goutputstream-XXXXXX fails, the library unlinks the target destination file and recreates it without using exclusive creation or symlink protection. This creates a time-of-check to time-of-use (TOCTOU) race condition (CWE-59) where a local attacker with write permissions to the destination directory can replace the intended file with a symlink or another file, causing the victim process to write to an unintended location. The usual g_file_replace() path that writes to a temporary file first is not vulnerable; only the fallback path is affected. Exploitation is local, requires write access to the directory, and a successful race to redirect writes. The vulnerability impacts integrity and availability but not confidentiality.
Potential Impact
A local attacker with write access to the destination directory can exploit a race condition to redirect file writes to arbitrary files, potentially overwriting or creating files that the victim process is allowed to write. This can lead to integrity violations and partial denial of service. Confidentiality is not impacted. The attack complexity is high and requires low privileges but no user interaction. There are no known exploits in the wild.
Mitigation Recommendations
Do not use g_file_replace() with the G_FILE_CREATE_REPLACE_DESTINATION flag on paths located in directories writable by less-privileged users. Avoid scenarios where the fallback temporary file creation fails. No official patch or fix is currently confirmed; check vendor advisories for updates. The vulnerability requires local write access and a race condition, so restricting directory write permissions is an effective mitigation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-847x-vxjh-whpv
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-86469"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a9f9117acd9273b49ff2d1e
Added to database: 09/08/2026, 04:37:43 UTC
Last enriched: 09/08/2026, 04:53:33 UTC
Last updated: 10/07/2026, 06:48:19 UTC
Views: 92
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.