Vulnerability · Published Mar 11, 2021 · Assigned by mitre
CVE-2021-28153
Medium 5.3
In plain English
A medium-severity security flaw in the glib2-doc package (AlmaLinux). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.7% (higher than 86% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.)
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | glib2-doc | 2.56.4-156.el8 | ALSA-2021:4385 |
| AlmaLinux:8 | glib2-static | 2.56.4-156.el8 | ALSA-2021:4385 |
| AlmaLinux:9 | mingw32-glib2 | 2.70.1-2.el9 | ALSA-2022:8418 |
| AlmaLinux:9 | mingw32-glib2-static | 2.70.1-2.el9 | ALSA-2022:8418 |
| AlmaLinux:9 | mingw64-glib2 | 2.70.1-2.el9 | ALSA-2022:8418 |
| AlmaLinux:9 | mingw64-glib2-static | 2.70.1-2.el9 | ALSA-2022:8418 |
| Debian:12 | glib2.0 | 2.66.7-2 | DEBIAN-CVE-2021-28153 |
| Debian:13 | glib2.0 | 2.66.7-2 | DEBIAN-CVE-2021-28153 |
| Debian:14 | glib2.0 | 2.66.7-2 | DEBIAN-CVE-2021-28153 |
| Rocky Linux:8 | glib2 | 0:2.56.4-156.el8 | RLSA-2021:4385 |
Affected products (as reported)
References
- https://gitlab.gnome.org/GNOME/glib/-/issues/2325 x_refsource_MISC
- FEDORA-2021-a1f51fc418 vendor-advisory, x_refsource_FEDORA
- https://security.netapp.com/advisory/ntap-20210416-0003/ x_refsource_CONFIRM
- FEDORA-2021-5c81cb03d0 vendor-advisory, x_refsource_FEDORA
- GLSA-202107-13 vendor-advisory, x_refsource_GENTOO
- [debian-lts-announce] 20220606 [SECURITY] [DLA 3044-1] glib2.0 security update mailing-list, x_refsource_MLIST
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html