CVE-2021-28153

MEDIUMCVSS 5.3/10EPSS 2.62%

Last modified

CVE-2021-28153 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. 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. EPSS estimates a 2.62% chance of exploitation in the next 30 days.

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

Metrics

CVSS 3.1
5.3/10

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

EPSS Probability
2.62%

83.5th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
GnomeGlib< 2.66.8
BroadcomBrocade Fabric Operating System FirmwareAll versions
DebianDebian Linux9.0
FedoraprojectFedora33

References

Timeline

Published
Last Modified
Status
Modified

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.)
How severe is CVE-2021-28153?
CVE-2021-28153 has a CVSS score of 5.3/10 (MEDIUM severity). The EPSS model estimates a 2.62% probability of exploitation in the next 30 days.
How do I fix CVE-2021-28153?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2021-28153?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST