Advisory Database
  • Advisories
  • Dependency Scanning
  1. conan
  2. ›
  3. glib
  4. ›
  5. CVE-2021-28153

CVE-2021-28153: Improper Link Resolution Before File Access

March 11, 2021 (updated November 9, 2023)

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.

References

  • gitlab.gnome.org/GNOME/glib/-/issues/2325
  • nvd.nist.gov/vuln/detail/CVE-2021-28153

Code Behaviors & Features

Detect and mitigate CVE-2021-28153 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.66.8

Fixed versions

  • 2.72.4

Solution

Upgrade to version 2.72.4 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-59: Improper Link Resolution Before File Access ('Link Following')

Source file

conan/glib/CVE-2021-28153.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:31 +0000.