Link Following Affecting glib2 package, versions <0:2.36.3-5.23.amzn1


high

Snyk CVSS

    Attack Complexity Low

    Threat Intelligence

    EPSS 0.93% (83rd percentile)
Expand this section
NVD
5.3 medium
Expand this section
SUSE
3.7 low
Expand this section
Red Hat
5.3 medium

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-AMZN201803-GLIB2-5496814
  • published 4 May 2023
  • disclosed 11 Mar 2021

How to fix?

Upgrade Amazon-Linux:2018.03 glib2 to version 0:2.36.3-5.23.amzn1 or higher.
This issue was patched in ALAS-2023-1742.

NVD Description

Note: Versions mentioned in the description apply only to the upstream glib2 package and not the glib2 package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2018.03 relevant fixed versions and status.

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.)