CVE-2021-28153

medium

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

References

https://gitlab.gnome.org/GNOME/glib/-/issues/2325

https://lists.fedoraproject.org/archives/list/[email protected]/message/6RXTD5HCP2K4AAUSWWZTBKQNHRCTAEOF/

https://security.netapp.com/advisory/ntap-20210416-0003/

https://lists.fedoraproject.org/archives/list/[email protected]/message/ICUTQPHZNZWX2DZR46QFLQZRHVMHIILJ/

https://security.gentoo.org/glsa/202107-13

https://lists.debian.org/debian-lts-announce/2022/06/msg00006.html

Details

Source: MITRE

Published: 2021-03-11

Updated: 2022-06-06

Type: CWE-59

Risk Information

CVSS v2

Base Score: 5

Vector: AV:N/AC:L/Au:N/C:N/I:P/A:N

Impact Score: 2.9

Exploitability Score: 10

Severity: MEDIUM

CVSS v3

Base Score: 5.3

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Impact Score: 1.4

Exploitability Score: 3.9

Severity: MEDIUM