Vulnerability in GNU Glibc
CVE-2025-4802
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).
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.006, 48.9th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- GNU Glibc
- The GNU C Library Glibc — versions 2.27
Weakness classification (CWE)
Public exploits and proof-of-concept code
2 public repositories with exploit or proof-of-concept code for this CVE:
- Betim-Hodza/CVE-2025-4802-Proof-of-Concept (2 stars, last pushed 2026-02-10): Proof of Concept for a statically compiled setuid binary vulnerable to dlopen with LD_LIBRARY_PATH
- betizzel/CVE-2025-4802-Proof-of-Concept (2 stars, last pushed 2026-02-10): Proof of Concept for a statically compiled setuid binary vulnerable to dlopen with LD_LIBRARY_PATH
Also mentioned in 10 other repositories (11notes/docker-paperless-ngx, 4xura/Fuzzing-Sudo, adegoodyer/kubernetes-admin-toolkit, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- sourceware.org/cgit/glibc/commit/ (Patch)
- sourceware.org/bugzilla/show_bug.cgi (Issue Tracking)
- www.openwall.com/lists/oss-security/2025/05/16/7 (Mailing List)
- www.openwall.com/lists/oss-security/2025/05/17/2 (Exploit, Mailing List)
- lists.debian.org/debian-lts-announce/2025/05/msg00033.html
This CVE has public exploit evidence. See the latest CVEs with public exploits.