Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2025-4802: Local Privilege Escalation in glibc Static Privileged Binary Library Loading

Published May 16, 2025 · Updated 9 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS7.8High · v3.1
EPSS0.33%18th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
GNU Project
IdentifiersCVE-2025-4802CWE-426 · Untrusted Search Path

CVE-2025-4802 is an untrusted library search-path vulnerability in GNU C Library (glibc) versions 2.27 through 2.38. Statically linked setuid or setgid binaries that invoke dlopen() can incorrectly honor the attacker-controlled LD_LIBRARY_PATH environment variable and load malicious shared libraries. Library loading can occur explicitly or indirectly through locale processing and Name Service Switch (NSS) functions such as getaddrinfo(). The flaw arises because unsafe environment variables are sanitized too late during static executable initialization, after library search paths have been initialized. The upstream fix, included in glibc 2.39, moves sanitization earlier in _dl_non_dynamic_init(), before _dl_init_paths(). Successful exploitation enables local code execution with the affected executable's elevated privileges.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

An attacker can execute arbitrary library code with the effective user or group privileges of a vulnerable static executable. A setuid-root executable can therefore enable root-level compromise, including unauthorized access to sensitive information, modification of protected resources, and disruption of system availability. Exploitation is local and conditional on a suitable privileged static executable; no naturally occurring vulnerable program had been identified when the upstream advisory was published, although custom programs remained a concern.

Mitigation

If you can’t patch tonight, do this now.

Until corrected binaries are available, remove unnecessary setuid or setgid privileges from affected statically linked executables, disable those executables, or restrict their execution to trusted users. Prioritize custom and third-party static privileged programs that can load libraries directly or through NSS or locale functionality. Environment sanitization performed only after vulnerable runtime initialization should not be relied upon as a workaround.

Remediation

Patch, then assume compromise.

Upgrade to glibc 2.39 or later, or install the distribution's security update containing the backported fix for CVE-2025-4802. Rebuild and redeploy affected statically linked privileged executables against the corrected glibc static libraries: updating the installed shared glibc packages alone does not replace vulnerable code embedded in existing static binaries. Obtain corrected builds from third-party suppliers where necessary, and deploy vendor-updated container images or product releases where applicable.

Public exploits

Exploits

1 exploit validated by Mallory's analysis.

View more in app →
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
GNU ProjectGlibcapplication
FAQ

Frequently asked questions

Is CVE-2025-4802 exploited in the wild?
As of Nov 20, 2026, Mallory has no reports of CVE-2025-4802 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2025-4802?
Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2025-4802, the earliest disclosed Jan 9, 2026.
Is there a patch for CVE-2025-4802?
Upgrade to glibc 2.39 or later, or install the distribution's security update containing the backported fix for CVE-2025-4802. Rebuild and redeploy affected statically linked privileged executables against the corrected glibc static libraries: updating the installed shared glibc packages alone does not replace vulnerable code embedded in existing static binaries.
What products are affected by CVE-2025-4802?
GNU Project Glibc.
How severe is CVE-2025-4802?
CVE-2025-4802 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.33% (18th percentile) as of Nov 20, 2026.
Activity feed

Recent activity

43 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
tenable nessus pluginsNews · Nov 14, 2026Rocky Linux 9.6 [CIQ] Security Update: glibc / glibc-all-langp... | Tenable®A glibc vulnerability addressed by CIQ's Rocky Linux 9.6 security update. The content does not describe its specific mechanism or impact.Read more ↗tenable cloud security pluginsNews · Oct 5, 2026Google: sys-libs/glibc: security update to 19071.0.0 | Tenable®A vulnerability affecting sys-libs/glibc packages covered by Google COS security checks. The reference assigns a critical CVSS v3 base score of 9.8, indicating network attackability, low complexity, no required privileges or user interaction, and high confidentiality, integrity, and availability impacts. The underlying flaw is not described.Read more ↗tenable nessus pluginsNews · Oct 4, 2026CentOS Linux 8.4 [TuxCare] Security Update: glibc-headers / gl... | Tenable®A vulnerability affecting glibc packages on CentOS Linux 8.4, addressed by TuxCare advisory CENTOS8.4:CLSA-2025:1750416241. The plugin reports a CVSS v3 base score of 7.8, with local access, no required privileges, user interaction, and high confidentiality, integrity, and availability impacts. Exploits and patches are available. The content does not describe the underlying flaw; Nessus identifies affected installations using self-reported version information rather than testing exploitation.Read more ↗tenable cloud security pluginsNews · Oct 1, 2026Google: sys-libs/glibc: security update to 18867.90.32 | Tenable®A high-severity vulnerability affecting the sys-libs/glibc package in Google Container-Optimized OS (COS), remediated by updating glibc and related packages to version 18867.90.32 or later.Read more ↗
+18 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity19Community discussion across Reddit, Mastodon, and other social sources.