CVE-2025-4802

published 16 May 2025 · updated 3 Mar 2026

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

7.8HighCVSS 7.8EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 2.39.

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

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
The GNU C Library>=2.27 <2.392.39

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-4802 severity on Zeptric[![CVE-2025-4802](https://zeptric.io/badge/cve/CVE-2025-4802.svg)](https://zeptric.io/cve/CVE-2025-4802)