CVE-2020-1752 Use after free in glibc

High 7.0 Published Updated

A local attacker can achieve arbitrary code execution via a use-after-free flaw in glibc's tilde expansion when processing crafted directory paths.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2020-1752?

CVE-2020-1752 is a high-severity use after free vulnerability in Canonical Ubuntu Linux, published on 30 Apr 2020. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

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

Weakness: CWE-416

Which versions are affected by CVE-2020-1752?

It affects 8 products.

Linux distribution packages (15)
glibc SUSE:HPE Helion OpenStack 8All versions2.22-123.1
glibc SUSE:Linux Enterprise High Performance Computing 15-ESPOSAll versions2.26-13.45.1
glibc SUSE:Linux Enterprise High Performance Computing 15-LTSSAll versions2.26-13.45.1
glibc SUSE:Linux Enterprise Module for Basesystem 15 SP1All versions2.26-13.45.1
glibc SUSE:Linux Enterprise Module for Development Tools 15 SP1All versions2.26-13.45.1
glibc SUSE:Linux Enterprise Server 12 SP2-BCLAll versions2.22-123.1
glibc SUSE:Linux Enterprise Server 12 SP3-BCLAll versions2.22-123.1
glibc SUSE:Linux Enterprise Server 12 SP3-LTSSAll versions2.22-123.1
glibc SUSE:Linux Enterprise Server 15-LTSSAll versions2.26-13.45.1
glibc SUSE:Linux Enterprise Server for SAP Applications 12 SP3All versions2.22-123.1
glibc SUSE:Linux Enterprise Server for SAP Applications 15All versions2.26-13.45.1
glibc SUSE:OpenStack Cloud 8All versions2.22-123.1
glibc SUSE:OpenStack Cloud Crowbar 8All versions2.22-123.1
glibc openSUSE:Leap 15.1All versions2.26-lp151.19.11.1
glibc-testsuite-src openSUSE:Leap 15.1All versions2.26-lp151.19.11.1

Products include Canonical Ubuntu Linux, Debian Debian Linux, Gnu Glibc, Netapp Active Iq Unified Manager, Netapp H410c Firmware, Netapp Hci Management Node and 2 more.

How do I fix CVE-2020-1752?

Upgrade to a fixed version.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2020-1752 being exploited?

There is no known exploitation of CVE-2020-1752 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as CLSA-2025-1758704869, CLSA-2025-1758711950, DEBIAN-CVE-2020-1752, GHSA-8x3m-4qgh-829r, SUSE-SU-2020:0820-1, SUSE-SU-2022:1123-1 and 2 more.

Is CVE-2020-1752 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free