CVE-2020-1752
glibc: use-after-free in glob() function when expanding ~user
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · January 17, 2020
Updated · October 14, 2026
Description
A use-after-free vulnerability was found in glibc in the way the tilde expansion was carried out. Directory paths containing an initial tilde followed by a valid username were affected by this issue. A local attacker could exploit this flaw by creating a specially crafted path that, when processed by the glob function, would potentially lead to arbitrary code execution.
Statement
The Red Hat Product Security Team has rated this issue as having Moderate security impact. This flaw did not affect the versions of glibc as shipped with Red Hat Enterprise Linux 5 and 6, as the vulnerable code was introduced in a later version of the package. Red Hat Enterprise Linux 7 is approaching the End of Maintenance Support 1 Phase of the support and maintenance life cycle. The flaw is not currently planned to be addressed in future updates of Red Hat Enterprise Linux 7, hence marked as "Will not fix". For further information, please refer to the Red Hat Enterprise Linux Life Cycle and Issue Severity Classification:
[1] https://access.redhat.com/support/policy/updates/errata
[2] https://access.redhat.com/security/updates/classification
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Avoid the expansion of overly long directory paths.
CVSS / CWE
CVSS 3.1 · 7CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
CWE-416 · Use After Free