glibc LD_LIBRARY_PATH Flaw Pre-2.39 - arbitrary dlopen via setuid binaries
CVE-2025-4802 Published on May 16, 2025
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).
Vulnerability Analysis
CVE-2025-4802 is exploitable with local system access, requires user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to be very high.
Weakness Type
What is an Untrusted Path Vulnerability?
The application searches for critical resources using an externally-supplied search path that can point to resources that are not under the application's direct control.
CVE-2025-4802 has been classified to as an Untrusted Path vulnerability or weakness.
Products Associated with CVE-2025-4802
stack.watch emails you whenever new vulnerabilities are published in GNU Glibc or Oracle. Just hit a watch button to start following.
Affected Versions
The GNU C Library glibc:- Version 2.27 and below 2.39 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.