Rapid7 Vulnerability & Exploit Database

Red Hat: CVE-2021-28153: CVE-2021-28153 glib: g_file_replace() with G_FILE_CREATE_REPLACE_DESTINATION creates empty target for dangling symlink (Multiple Advisories)

Free InsightVM Trial No Credit Card Necessary
2024 Attack Intel Report Latest research by Rapid7 Labs
Back to Search

Red Hat: CVE-2021-28153: CVE-2021-28153 glib: g_file_replace() with G_FILE_CREATE_REPLACE_DESTINATION creates empty target for dangling symlink (Multiple Advisories)

Severity
5
CVSS
(AV:N/AC:L/Au:N/C:N/I:P/A:N)
Published
03/11/2021
Created
11/11/2021
Added
11/10/2021
Modified
12/15/2023

Description

An issue was discovered in GNOME GLib before 2.66.8. When g_file_replace() is used with G_FILE_CREATE_REPLACE_DESTINATION to replace a path that is a dangling symlink, it incorrectly also creates the target of the symlink as an empty file, which could conceivably have security relevance if the symlink is attacker-controlled. (If the path is a symlink to a file that already exists, then the contents of that file correctly remain unchanged.)

Solution(s)

  • redhat-upgrade-glib2
  • redhat-upgrade-glib2-debuginfo
  • redhat-upgrade-glib2-debugsource
  • redhat-upgrade-glib2-devel
  • redhat-upgrade-glib2-devel-debuginfo
  • redhat-upgrade-glib2-doc
  • redhat-upgrade-glib2-fam
  • redhat-upgrade-glib2-fam-debuginfo
  • redhat-upgrade-glib2-static
  • redhat-upgrade-glib2-tests
  • redhat-upgrade-glib2-tests-debuginfo
  • redhat-upgrade-mingw32-glib2
  • redhat-upgrade-mingw32-glib2-debuginfo
  • redhat-upgrade-mingw32-glib2-static
  • redhat-upgrade-mingw64-glib2
  • redhat-upgrade-mingw64-glib2-debuginfo
  • redhat-upgrade-mingw64-glib2-static

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;