CVE-2026-86469
5.3
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:L
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 or symlink protection. A local attacker who can write to the destination directory can win that race and redirect the write to another file.
Affected Software
| Vendor | Product | Version Range | Status |
|---|
Weaknesses
- CWE-59: Improper Link Resolution Before File Access ('Link Following')
Workarounds
Do not use g_file_replace(…, G_FILE_CREATE_REPLACE_DESTINATION) on paths in directories writable by less-privileged users.
References
- https://access.redhat.com/security/cve/CVE-2026-86469
- https://bugzilla.redhat.com/show_bug.cgi?id=2473839
- https://gitlab.gnome.org/GNOME/glib/-/blob/main/gio/glocalfileoutputstream.c
- https://gitlab.gnome.org/GNOME/glib/-/work_items/4044
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.