CVE-2025-4802 Details
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 vulnerability exists in the GNU C Library (glibc) versions 2.27 through 2.38, where the LD_LIBRARY_PATH environment variable can be exploited to load attacker-controlled shared libraries into statically compiled setuid binaries. This issue arises when such binaries call dlopen, including internal dlopen calls after setlocale or calls to Name Service Switch (NSS) functions like getaddrinfo. The vulnerability could lead to the execution of malicious library code with elevated privileges.
Users can upgrade to GNU C Library version 2.39 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 26, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://sourceware.org/bugzilla/show_bug.cgi?id=32976 | GNU C Library | Issue Tracking |
| https://sourceware.org/cgit/glibc/commit/?id=1e18586c5820e329f741d5c710275e165581380e | GNU C Library | Patch |
| https://lists.debian.org/debian-lts-announce/2025/05/msg00033.html | CVE | |
| http://www.openwall.com/lists/oss-security/2025/05/16/7 | CVE | Mailing List |
| http://www.openwall.com/lists/oss-security/2025/05/17/2 | CVE | ExploitMailing List |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-426 | Untrusted Search Path | GNU C Library |
Affected Products
| Product | Versions |
|---|---|
| gnu glibc | >= 2.27, <= 2.38 |
CPE
Remediation
| |
Change History
9 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | GNU C Library |
| Nov 3, 2025 | CVE Modified | CVE |
| Jun 17, 2025 | Initial Analysis | [email protected] |
| May 20, 2025 | CVE Modified | CISA-ADP |
| May 17, 2025 | CVE Modified | CVE |
| May 17, 2025 | CVE Modified | CISA-ADP |
| May 17, 2025 | CVE Modified | CVE |
| May 16, 2025 | New CVE Received | GNU C Library |