cve.bz

CVE-2025-4802 gnu glibc: Untrusted Search Path

7.8 highExploit referenceEPSS 0.6%Fix available

High (7.8) in gnu glibc. EPSS 0.6% estimated probability of exploitation activity in the next 30 days.

On this page
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).

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 49th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-07-26. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-426 Untrusted Search Path
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-4802 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-4802?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-4802?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-4802 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
The GNU C Library glibcfrom 2.27 before 2.39

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11glibc2.31-13+deb11u13DLA-4181-1
Debian12glibc2.36-9+deb12u11DEBIAN-CVE-2025-4802
Debian13, 14glibc2.39-4DEBIAN-CVE-2025-4802
Ubuntu20.04:LTSglibc2.31-0ubuntu9.18UBUNTU-CVE-2025-4802 USN-7541-1
Ubuntu22.04:LTSglibc2.35-0ubuntu3.10UBUNTU-CVE-2025-4802 USN-7541-1
UbuntuPro:18.04:LTSglibc2.27-3ubuntu1.6+esm5UBUNTU-CVE-2025-4802 USN-7541-1
Red Hatenterprise_linux:8::appstreamglibc-utils, nscd-debuginfo, glibc-debuginfo and 10 more0:2.28-251.el8_10.22RHSA-2025:8686
Red Hatenterprise_linux:8::baseosnscd, glibc, libnsl and 216 more0:2.28-251.el8_10.22RHSA-2025:8686
Red Hatenterprise_linux:8::crbnss_hesiod, glibc-static, nscd-debuginfo and 12 more0:2.28-251.el8_10.22RHSA-2025:8686
Red Hatenterprise_linux:9::appstreamglibc-doc, glibc-devel, glibc-utils and 12 more0:2.34-168.el9_6.19RHSA-2025:8655
Red Hatenterprise_linux:9::baseosnscd, glibc, libnsl and 212 more0:2.34-168.el9_6.19RHSA-2025:8655
Red Hatenterprise_linux:9::crbnss_db, nss_hesiod, glibc-static and 12 more0:2.34-168.el9_6.19RHSA-2025:8655
Red Hatrhel_aus:7.7::servernscd, glibc, glibc-devel and 6 more0:2.17-292.el7_7.3RHSA-2025:10220
Red Hatrhel_els:7nscd, glibc, glibc-devel and 6 more0:2.17-326.el7_9.5RHSA-2025:10219
Red Hatrhel_eus:9.4::appstreamglibc-doc, glibc-devel, glibc-utils and 12 more0:2.34-100.el9_4.12RHSA-2025:9336
Red Hatrhel_eus:9.4::baseosnscd, glibc, libnsl and 212 more0:2.34-100.el9_4.12RHSA-2025:9336
Red Hatrhel_eus:9.4::crbnss_db, nss_hesiod, glibc-static and 12 more0:2.34-100.el9_4.12RHSA-2025:9336
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 16 moreglibc2.31-150300.95.1SUSE-SU-2025:01784-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Development Tools 15 SP6glibc2.38-150600.14.32.1SUSE-SU-2025:01702-1
SUSELinux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Module for Development Tools 15 SP7glibc2.38-150600.14.32.1SUSE-SU-2025:01702-2
SUSELinux Micro 6.0glibc2.38-9.1SUSE-SU-2025:20332-1
SUSELinux Micro 6.1glibc2.38-slfo.1.1_4.1SUSE-SU-2025:20361-1
openSUSELeap 15.6glibc2.38-150600.14.32.1SUSE-SU-2025:01702-1
openSUSETumbleweedglibc2.41-3.1openSUSE-SU-2025:15222-1
openSUSETumbleweedkumactl2.12.3-1.1openSUSE-SU-2025:15697-1
AlmaLinux8nscd, glibc, libnsl and 211 more2.28-251.el8_10.22ALSA-2025:8686
AlmaLinux9nscd, glibc, libnsl and 212 more2.34-168.el9_6.19ALSA-2025:8655
Rocky Linux8glibc0:2.28-251.el8_10.22RLSA-2025:8686
Rocky Linux9glibc0:2.34-168.el9_6.19RLSA-2025:8655
Azure Linux2glibcno fix listedAZL-61873
Azure Linux3glibc2.38-14AZL-61877
Alpaquita23glibc2.37.0-r18BELL-CVE-2025-4802
Alpaquitastreamglibc2.39.0-r0BELL-CVE-2025-4802
BellSoft Hardened Containers23glibc2.37.0-r18BELL-CVE-2025-4802
BellSoft Hardened Containersstreamglibc2.39.0-r0BELL-CVE-2025-4802

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue can only be exploitable by a local attacker via a static setuid program that calls the dlopen function, causing the library to search LD_LIBRARY_PATH to locate the shared object name to load. No such programs have been found in Red Hat Enterprise Linux at the time of publishing this advisory. However, custom setuid programs, although strongly discouraged as a security practice, may exist and can not be discarded. Due to these reasons, this flaw has been rated with a moderate severity.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7.7 Advanced Update Supportglibc-0:2.17-292.el7_7.3Fixed 2025-07-02RHSA-2025:10220
Red Hat Enterprise Linux 7 Extended Lifecycle Supportglibc-0:2.17-326.el7_9.5Fixed 2025-07-02RHSA-2025:10219
Red Hat Enterprise Linux 8glibc-0:2.28-251.el8_10.22Fixed 2025-06-09RHSA-2025:8686
Red Hat Enterprise Linux 9glibc-0:2.34-168.el9_6.19Fixed 2025-06-09RHSA-2025:8655
Red Hat Enterprise Linux 9.4 Extended Update Supportglibc-0:2.34-100.el9_4.12Fixed 2025-06-23RHSA-2025:9336
Red Hat OpenShift Container Platform 4.16openshift/ose-rhel-coreos-9:416.94.202506251808-0Fixed 2025-07-02RHSA-2025:9765
Red Hat OpenShift Container Platform 4.17openshift/ose-rhel-coreos-9:417.94.202507021305-0Fixed 2025-07-09RHSA-2025:10294
Red Hat OpenShift Container Platform 4.18openshift/ose-rhel-coreos-9:418.94.202506251005-0Fixed 2025-07-02RHSA-2025:9725
Red Hat OpenShift Container Platform 4.19openshift/ose-rhel-coreos-9:4.19.9.6.202506252250-0Fixed 2025-07-01RHSA-2025:9750
Red Hat Discovery 1.14discovery/discovery-server-rhel9:1.14.5-1749654812Fixed 2025-06-12RHSA-2025:9028
Red Hat Discovery 2discovery/discovery-server-rhel9:2.0.0-1752592913Fixed 2025-07-21RHSA-2025:11487
Red Hat Enterprise Linux 10glibcNot affected
Red Hat Enterprise Linux 6compat-glibcNot affected
Red Hat Enterprise Linux 6glibcNot affected
Red Hat Enterprise Linux 7compat-glibcNot affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Will not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-4802.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

Attack patterns (CAPEC)

  • CAPEC-38 Leveraging/Manipulating Configuration File Search Paths Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON