CVEfocus › CVE database › CVE-2021-28153

CVE-2021-28153

EPSS 2.7% (higher than 87% of CVEs)Published 2021-03-11Updated 2026-10-14Assigner: mitre

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

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

25Fixed
1Fix pending
12Will not fix
9Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04glib2.0Not affected
vulnerable_code_not_present
Ubuntu 25.10glib2.0Not affected
vulnerable_code_not_present
Ubuntu 24.04glib2.0Not affected
vulnerable_code_not_present
Ubuntu 22.04glib2.0Not affected
vulnerable_code_not_present
Ubuntu 20.04glib2.0Fixed2.64.6-1~ubuntu20.04.3UBUNTU-CVE-2021-28153
Ubuntu 18.04glib2.0Fixed2.56.4-0ubuntu0.18.04.8UBUNTU-CVE-2021-28153
Ubuntu 16.04glib2.0Fixed2.48.2-0ubuntu4.8UBUNTU-CVE-2021-28153
Ubuntu 14.04glib2.0Fix pendingUBUNTU-CVE-2021-28153
Debian 14glib2.0Fixed2.66.7-2DEBIAN-CVE-2021-28153
Debian 13glib2.0Fixed2.66.7-2DEBIAN-CVE-2021-28153
Debian 12glib2.0Fixed2.66.7-2DEBIAN-CVE-2021-28153
Red Hat Enterprise Linux 9glib2Not affected
Red Hat Enterprise Linux 9glib2-develNot affected
Red Hat Enterprise Linux 9glib2-docNot affected
Red Hat Enterprise Linux 9glib2-staticNot affected
Red Hat Enterprise Linux 9glib2-testsNot affected
Red Hat Enterprise Linux 9mingw-glib2Fixed0:2.70.1-2.el9RHSA-2022:8418
Red Hat Enterprise Linux 9mingw32-glib2Fixed0:2.70.1-2.el9RHSA-2022:8418
Red Hat Enterprise Linux 9mingw32-glib2-staticFixed0:2.70.1-2.el9RHSA-2022:8418
Red Hat Enterprise Linux 9mingw64-glib2Fixed0:2.70.1-2.el9RHSA-2022:8418
Red Hat Enterprise Linux 9mingw64-glib2-staticFixed0:2.70.1-2.el9RHSA-2022:8418
Red Hat Enterprise Linux 8glib2Fixed0:2.56.4-156.el8RHSA-2021:4385
Red Hat Enterprise Linux 8glib2-develFixed0:2.56.4-156.el8RHSA-2021:4385
Red Hat Enterprise Linux 8glib2-docFixed0:2.56.4-156.el8RHSA-2021:4385
Red Hat Enterprise Linux 8glib2-famFixed0:2.56.4-156.el8RHSA-2021:4385
Red Hat Enterprise Linux 8glib2-staticFixed0:2.56.4-156.el8RHSA-2021:4385
Red Hat Enterprise Linux 8glib2-testsFixed0:2.56.4-156.el8RHSA-2021:4385
Red Hat Enterprise Linux 7glib2Will not fix
Out of support scope
Red Hat Enterprise Linux 7glib2-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7glib2-docWill not fix
Out of support scope
Red Hat Enterprise Linux 7glib2-famWill not fix
Out of support scope
Red Hat Enterprise Linux 7glib2-staticWill not fix
Out of support scope
Red Hat Enterprise Linux 7glib2-testsWill not fix
Out of support scope
Red Hat Enterprise Linux 6firefoxWill not fix
Out of support scope
Red Hat Enterprise Linux 6glib2Will not fix
Out of support scope
Red Hat Enterprise Linux 6glib2-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6glib2-docWill not fix
Out of support scope
Red Hat Enterprise Linux 6glib2-staticWill not fix
Out of support scope
Red Hat Enterprise Linux 6thunderbirdWill not fix
Out of support scope
AlmaLinux 9mingw32-glib2Fixed2.70.1-2.el9ALSA-2022:8418
AlmaLinux 9mingw32-glib2-staticFixed2.70.1-2.el9ALSA-2022:8418
AlmaLinux 9mingw64-glib2Fixed2.70.1-2.el9ALSA-2022:8418
AlmaLinux 9mingw64-glib2-staticFixed2.70.1-2.el9ALSA-2022:8418
AlmaLinux 8glib2-docFixed2.56.4-156.el8ALSA-2021:4385
AlmaLinux 8glib2-staticFixed2.56.4-156.el8ALSA-2021:4385
Rocky Linux 8glib2Fixed0:2.56.4-156.el8RLSA-2021:4385
Alpine Linux 3.13glibFixed2.66.6-r0ALPINE-CVE-2021-28153

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.