CVE Catalog

CVE-2025-4802

Medium
Published: Translated: NVD NIST

Summary

In GNU C Library versions 2.27 to 2.38, an untrusted LD_LIBRARY_PATH environment variable vulnerability allows attacker-controlled loading of dynamically shared libraries in statically compiled setuid binaries that call dlopen (including internal dlopen calls after setlocale or calls to NSS functions).

Risk Assessment

The risk includes privilege escalation by an attacker, as they can inject a malicious library into a process with elevated privileges.

Recommendation

It is recommended to upgrade glibc to a version newer than 2.38 that includes a fix for this vulnerability, and avoid using LD_LIBRARY_PATH in setuid contexts.

Original NVD description (English source)

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 s

Vulnerability data from NVD (NIST) · CISA KEV · EPSS