CVE-2025-4802 is a local privilege-escalation vulnerability in GNU C Library (glibc) versions 2.27 through 2.38. In affected statically linked privileged binaries, the static dynamic-loader initialization path can process the untrusted LD_LIBRARY_PATH environment variable before secure-execution environment sanitization occurs. A statically linked setuid or setgid binary that invokes dlopen, either directly or indirectly through locale or Name Service Switch operations, can therefore search an attacker-controlled directory and load an attacker-controlled shared library. The upstream correction moves sanitization of unsafe environment variables earlier in static-loader initialization, before library search paths are initialized.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos.
This repository is a proof-of-concept (PoC) exploit for CVE-2025-4802, a vulnerability in GNU C Library (glibc) versions 2.27 to 2.38. The vulnerability allows an attacker to control the LD_LIBRARY_PATH environment variable, causing a statically compiled setuid binary that calls dlopen (directly or indirectly) to load an attacker-supplied shared object. The repository contains three C source files: - `main.c`: The main PoC binary, simulating a setuid root program that loads a shared object (`myso.so`) using dlopen, sets its UID to root, and calls a function from the loaded shared object. - `evil_library/evilso.c`: The malicious shared object, which defines a `hello` function that prints a message and then executes `/bin/sh`, effectively spawning a root shell. - `myso.c`: A benign shared object for demonstration, with a `hello` function that prints a safe message. The exploit demonstrates how an attacker can use a malicious shared object to gain root shell access by exploiting the vulnerable loading mechanism. The attack vector is local, requiring the attacker to control the environment and execute the vulnerable binary. The main fingerprintable endpoints are the use of `/bin/sh` (for privilege escalation) and the loading of `myso.so` via dlopen. The repository is a functional PoC and does not use any exploit frameworks.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
34 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A local privilege escalation vulnerability in GNU glibc affecting statically linked SUID/SGID ELF binaries that invoke dlopen() directly or indirectly, allowing attacker-controlled libraries to be loaded via LD_LIBRARY_PATH during secure execution.
Privilege escalation vulnerability in GNU glibc affecting statically linked SUID/SGID ELF binaries that invoke dlopen() directly or indirectly, allowing attacker-controlled libraries to be loaded via LD_LIBRARY_PATH and arbitrary code to run with elevated privileges.
A vulnerability referenced as addressed by the Red Hat Service Interconnect 1.4 security update; no technical details are provided in the content.
A vulnerability addressed through the OADP must-gather backport; no further technical details are provided.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.