PT-2021-5823 · Gnome+9 · Gnome Glib+9
Published
2021-03-10
·
Updated
2024-02-27
·
CVE-2021-28153
CVSS v3.1
5.3
Medium
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
GNOME GLib versions prior to 2.66.8
Description
An issue was discovered in GNOME GLib when the
g file replace() function is used with G FILE CREATE REPLACE DESTINATION to replace a path that is a dangling symlink. It incorrectly creates the target of the symlink as an empty file, which could have security relevance if the symlink is attacker-controlled. If the path is a symlink to a file that already exists, the contents of that file remain unchanged. The vulnerability may allow a remote attacker to impact data integrity without requiring root privileges.Recommendations
For GNOME GLib versions prior to 2.66.8, update to version 2.66.8 or later to resolve the issue. As a temporary workaround, consider restricting the use of the
g file replace() function with G FILE CREATE REPLACE DESTINATION when handling dangling symlinks to minimize the risk of exploitation.Exploit
Fix
Link Following
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Almalinux
Astra Linux
Centos
Gnome Glib
Linuxmint
Red Hat
Rocky Linux
Suse
Ubuntu