All reports
Medium

glibc: use-after-free in glob() function when expanding ~user

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2020-1752

Probability of exploitation in the next 30 days: 0.55%

FIRST EPSS · 2026-11-20

Description

A use-after-free vulnerability introduced in glibc upstream version 2.14 was found 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. This was fixed in version 2.32.

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.