PT-2021-5823
CVE-2021-28153
·
Published
2021-03-10
·
Updated
2026-10-14
Description by
CVSS 3.1
5.3
MediumMetricsAV: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. Found an issue in the description? Have something to add? Feel free to write us 👾