All reports
Medium

glibc: static setuid binary dlopen may incorrectly search LD_LIBRARY_PATH

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-4802

Probability of exploitation in the next 30 days: 0.59%

FIRST EPSS · 2026-11-20

Description

Untrusted LD_LIBRARY_PATH environment variable vulnerability in the GNU C Library version 2.27 to 2.38 allows attacker controlled loading of dynamically shared library in statically compiled setuid binaries that call dlopen (including internal dlopen calls after setlocale or calls to NSS functions such as getaddrinfo).

A flaw was found in the glibc library. A statically linked setuid binary that calls dlopen(), including internal dlopen() calls after setlocale() or calls to NSS functions such as getaddrinfo(), may incorrectly search LD_LIBRARY_PATH to determine which library to load, allowing a local attacker to load malicious shared libraries, escalate privileges and execute arbitrary code.