cve.bz

CVE-2021-28153 Link Following

5.3 mediumExploit referenceEPSS 2.7%Fix available

Medium (5.3). EPSS 2.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.)

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS
2.7% (unchanged from 2.7% a week ago; 2.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 86th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-59 Improper Link Resolution Before File Access (Link Following)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-28153 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-28153?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-28153?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-28153 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-28153

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-28153](https://cve.bz/cve/badge/CVE-2021-28153.svg)](https://cve.bz/cve/CVE-2021-28153)

HTML:

<a href="https://cve.bz/cve/CVE-2021-28153"><img src="https://cve.bz/cve/badge/CVE-2021-28153.svg" alt="CVE-2021-28153"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gnome:glibbefore 2.66.8
debian:debian_linux9.0
fedoraproject:fedora33

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9glib2.02.50.3-2+deb9u3DLA-3044-1
Debian12, 13, 14glib2.02.66.7-2DEBIAN-CVE-2021-28153
Ubuntu16.04:LTSglib2.02.48.2-0ubuntu4.8UBUNTU-CVE-2021-28153 USN-4764-1
Ubuntu18.04:LTSglib2.02.56.4-0ubuntu0.18.04.8UBUNTU-CVE-2021-28153 USN-4764-1
Ubuntu20.04:LTSglib2.02.64.6-1~ubuntu20.04.3UBUNTU-CVE-2021-28153 USN-4764-1
UbuntuPro:14.04:LTSglib2.0no fix listedUBUNTU-CVE-2021-28153
Red Hatenterprise_linux:8::baseosglib2, glib2-fam, glib2-devel and 6 more0:2.56.4-156.el8RHSA-2021:4385
Red Hatenterprise_linux:8::crbglib2-doc, glib2-static, glib2-debuginfo and 4 more0:2.56.4-156.el8RHSA-2021:4385
Red Hatenterprise_linux:9::crbmingw-glib2, mingw32-glib2, mingw64-glib2 and 4 more0:2.70.1-2.el9RHSA-2022:8418
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise Server 15 SP1-LTSS and 1 moreglib22.54.3-150000.4.29.1SUSE-SU-2023:3535-1
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 10 moreglib22.62.6-150200.3.10.1SUSE-SU-2023:0174-1
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 10 moreglib22.62.6-150200.3.10.1SUSE-SU-2022:1455-2
SUSELinux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Real Time 15 SP2glib22.62.6-150200.3.9.1SUSE-SU-2022:1455-1
SUSELinux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP4-LTSS, Linux Enterprise Server for SAP Applications 12 SP4 and 2 moreglib22.48.2-12.28.1SUSE-SU-2022:1758-2
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5 and 1 moreglib22.48.2-12.28.1SUSE-SU-2022:1758-1
openSUSELeap 15.3glib22.62.6-150200.3.9.1SUSE-SU-2022:1455-1
openSUSELeap 15.4glib22.62.6-150200.3.10.1SUSE-SU-2023:0174-1
openSUSELeap Micro 5.2glib22.62.6-150200.3.10.1SUSE-SU-2022:1455-2
AlmaLinux8glib2-doc, glib2-static2.56.4-156.el8ALSA-2021:4385
AlmaLinux9mingw32-glib2, mingw64-glib2, mingw32-glib2-static and 1 more2.70.1-2.el9ALSA-2022:8418
Rocky Linux8glib20:2.56.4-156.el8RLSA-2021:4385
Alpinev3.13glib2.66.6-r0ALPINE-CVE-2021-28153
Azure Linux2glib2.60.1-5AZL-6439

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8glib2-0:2.56.4-156.el8Fixed 2021-11-09RHSA-2021:4385
Red Hat Enterprise Linux 9mingw-glib2-0:2.70.1-2.el9Fixed 2022-11-15RHSA-2022:8418
Red Hat Enterprise Linux 6firefoxOut of support scope
Red Hat Enterprise Linux 6glib2Out of support scope
Red Hat Enterprise Linux 6thunderbirdOut of support scope
Red Hat Enterprise Linux 7glib2Out of support scope
Red Hat Enterprise Linux 9glib2Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-28153.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON