Skip to main content
No exploitation reportedFix available

CVE-2021-28153

No exploitation reported by the sources we read.

  • Published2021-03-11
  • WeaknessCWE-59

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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

Timeline

dates in UTC
  1. 2021-03-1122:15CVE publishedNVD

Versions per branch

NVD
Broadcom brocade fabric operating system firmware
BranchAffectedFixed in
—all versionsno fix published
Debian debian linux
BranchAffectedFixed in
9.0= 9.0no fix published
Fedoraproject fedora
BranchAffectedFixed in
33.x= 33no fix published

1 more product in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • glibAzure Linux:2all versions · fixed in 2.60.1-5
  • glibAlpine:v3.13all versions · fixed in 2.66.6-r0
  • glib2TuxCare:OracleLinux:6all versions · fixed in 2.28.8-12.el6.cloudlinux.elsand 3 other packages
  • glib2TuxCare:CentOS:8.4all versions · fixed in 2.56.4-10.el8.4.1.tuxcare.els1and 5 other packages
  • glib2TuxCare:CentOS:6all versions · fixed in 2.28.8-12.el6.cloudlinux.elsand 3 other packages
  • glib2SUSE:OpenStack Cloud Crowbar 9all versions · fixed in 2.48.2-12.28.1
  • glib2SUSE:OpenStack Cloud 9all versions · fixed in 2.48.2-12.28.1
  • glib2SUSE:Manager Server 4.2all versions · fixed in 2.62.6-150200.3.10.1

48 more package ranges on OSV.dev

Vendor advisories

  • CVE-2021-28153 Red Hat Product Security82 products fixed · 16 known affected

    glib: g_file_replace() with G_FILE_CREATE_REPLACE_DESTINATION creates empty target for dangling symlink

    firefox as a component of Red Hat Enterprise Linux 6 · firefox.src as a component of Red Hat Enterprise Linux 6 · glib2 as a component of Red Hat Enterprise Linux 6 · +13 more

  • ICSA-23-348-10 CISA5 known affected

    Siemens SIMATIC S7-1500

    SIMATIC 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) · +2 more

  • SSA-398330 Siemens ProductCERT5 known affected

    SSA-398330: Vulnerabilities in the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP >= V3.1.0 and < V3.1.5

    SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= V3.1.0 < V3.1.5 · SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= V3.1.0 < V3.1.5 · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= V3.1.0 < V3.1.5 · +2 more

  • RHSA-2022:8418 Red Hat Product Security7 products fixed

    Red Hat Security Advisory: mingw-glib2 security and bug fix update

  • RHSA-2021:4385 Red Hat Product Security75 products fixed

    Red Hat Security Advisory: glib2 security and bug fix update

Full record on NVD

Fix

  1. Vendor fix CISA ICSA-23-348-10 · 5 productsUpdate to V3.1.5 or later version
  2. Vendor fix Siemens ProductCERT SSA-398330 · 1 productUpdate to V3.1.5 or later version
  3. Vendor fix Red Hat Product Security RHSA-2022:8418 · 7 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  4. Mitigation from the vendor CISA ICSA-23-348-10 · 5 productsOnly build and run applications from trusted sources.
  5. No fix planned, says the vendor Red Hat Product Security CVE-2021-28153 · 16 productsOut of support scope

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Published
2021-03-11
Last Modified
2026-10-14
NVD status
Modified
GitHub Advisory
GHSA-9hh6-p5c5-mmmf

Frequently asked questions

What is CVE-2021-28153?

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

Is CVE-2021-28153 actively exploited?

Active exploitation of CVE-2021-28153 has not been confirmed. Its EPSS score was 2.7% on 2026-11-09, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-28153?

CVE-2021-28153 has a CVSS v3 base score of 5.3 (MEDIUM severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N.

Running glib? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record