CVE-2021-28153 Path traversal in n/a
An attacker-controlled dangling symlink can cause GLib to create an unintended empty file at the symlink target, potentially leading to unauthorized file creation.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-28153?
CVE-2021-28153 is a medium-severity path traversal vulnerability in Debian Debian Linux, published on 11 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
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.)
Weakness: CWE-59
Which versions are affected by CVE-2021-28153?
It affects 4 products.
Linux distribution packages (40)
mingw32-glib2 AlmaLinux:9 | All versions | 2.70.1-2.el9 |
mingw32-glib2-static AlmaLinux:9 | All versions | 2.70.1-2.el9 |
mingw64-glib2 AlmaLinux:9 | All versions | 2.70.1-2.el9 |
mingw64-glib2-static AlmaLinux:9 | All versions | 2.70.1-2.el9 |
mingw-glib2 Red Hat:enterprise_linux:9::crb | All versions | 0:2.70.1-2.el9 |
mingw32-glib2 Red Hat:enterprise_linux:9::crb | All versions | 0:2.70.1-2.el9 |
mingw32-glib2-debuginfo Red Hat:enterprise_linux:9::crb | All versions | 0:2.70.1-2.el9 |
mingw32-glib2-static Red Hat:enterprise_linux:9::crb | All versions | 0:2.70.1-2.el9 |
mingw64-glib2 Red Hat:enterprise_linux:9::crb | All versions | 0:2.70.1-2.el9 |
mingw64-glib2-debuginfo Red Hat:enterprise_linux:9::crb | All versions | 0:2.70.1-2.el9 |
mingw64-glib2-static Red Hat:enterprise_linux:9::crb | All versions | 0:2.70.1-2.el9 |
glib2 SUSE:Enterprise Storage 7 | All versions | 2.62.6-150200.3.10.1 |
glib2 SUSE:Enterprise Storage 7 | All versions | 2.62.6-150200.3.10.1 |
glib2 SUSE:Enterprise Storage 7.1 | All versions | 2.62.6-150200.3.10.1 |
glib2 SUSE:Enterprise Storage 7.1 | All versions | 2.62.6-150200.3.10.1 |
glib2 SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 2.62.6-150200.3.10.1 |
glib2 SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 2.62.6-150200.3.10.1 |
glib2 SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | All versions | 2.62.6-150200.3.10.1 |
glib2 SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | All versions | 2.62.6-150200.3.10.1 |
glib2 SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 2.62.6-150200.3.10.1 |
glib2 SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 2.62.6-150200.3.10.1 |
glib2 SUSE:Linux Enterprise Micro 5.0 | All versions | 2.62.6-150200.3.9.1 |
glib2 SUSE:Linux Enterprise Micro 5.1 | All versions | 2.62.6-150200.3.10.1 |
glib2 SUSE:Linux Enterprise Micro 5.2 | All versions | 2.62.6-150200.3.10.1 |
glib2 SUSE:Linux Enterprise Module for Basesystem 15 SP3 | All versions | 2.62.6-150200.3.9.1 |
glib2 SUSE:Linux Enterprise Real Time 15 SP2 | All versions | 2.62.6-150200.3.9.1 |
glib2 SUSE:Linux Enterprise Real Time 15 SP3 | All versions | 2.62.6-150200.3.10.1 |
glib2 SUSE:Linux Enterprise Real Time 15 SP3 | All versions | 2.62.6-150200.3.10.1 |
glib2 SUSE:Linux Enterprise Server 12 SP2-BCL | All versions | 2.48.2-12.28.1 |
glib2 SUSE:Linux Enterprise Server 12 SP4-LTSS | All versions | 2.48.2-12.28.1 |
glib2 SUSE:Linux Enterprise Server 12 SP5 | All versions | 2.48.2-12.28.1 |
glib2 SUSE:Linux Enterprise Server 15 SP2-LTSS | All versions | 2.62.6-150200.3.10.1 |
glib2 SUSE:Linux Enterprise Server 15 SP2-LTSS | All versions | 2.62.6-150200.3.10.1 |
glib2 SUSE:Linux Enterprise Server 15 SP3-LTSS | All versions | 2.62.6-150200.3.10.1 |
glib2 SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | All versions | 2.48.2-12.28.1 |
glib2 SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 2.48.2-12.28.1 |
glib2 SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | All versions | 2.62.6-150200.3.10.1 |
glib2 SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | All versions | 2.62.6-150200.3.10.1 |
glib2 SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | All versions | 2.62.6-150200.3.10.1 |
glib2 SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | All versions | 2.62.6-150200.3.10.1 |
Products include Broadcom Brocade Fabric Operating System Firmware, Debian Debian Linux, Fedoraproject Fedora, Gnome Glib.
How do I fix CVE-2021-28153?
Upgrade to a fixed version.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2021-28153 being exploited?
There is no known exploitation of CVE-2021-28153 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as ALPINE-CVE-2021-28153, ALSA-2022:8418, AZL-6439, CLSA-2021-1623075923, CLSA-2021-1634922588, DEBIAN-CVE-2021-28153 and 12 more.