CVE-2025-4802: High severity GNU C Library vulnerability

Published May 16, 2025
·
Updated

Untrusted LDLIBRARYPATH 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).

Affected Software

14 affected componentsFixes available
GNU C Library>=2.27<=2.38
GNU glibc>=2.27<=2.38
IBM Cloud Pak System<=2.3.4.0
IBM Cloud Pak System<=2.3.4.1 2.3.4.1 ifix1
IBM Cloud Pak System<=2.3.5.0
IBM Cloud Pak System<=2.3.6.0
IBM OS Image for Red Hat Linux Systems<=4.0.4.0 4.0.5.0 4.0.6.0 4.0.7.0
IBM OS Image for Red Hat Linux Systems<=5.0.0.0 5.0.1.0
Microsoft azl3 glibc 2.38-12<2.38-12
2.38-12
Microsoft cbl2 glibc 2.35-7<2.35-8
2.35-8
Microsoft azl3 glibc 2.38-11
ubuntu/glibc<2.27-3ubuntu1.6+esm5
2.27-3ubuntu1.6+esm5
ubuntu/glibc<2.31-0ubuntu9.18
2.31-0ubuntu9.18
ubuntu/glibc<2.35-0ubuntu3.10
2.35-0ubuntu3.10

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.38-12
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.35-8
  3. Upgrade

    Upgrade ubuntu/glibc to a version that resolves this vulnerability.

    Fixed in 2.27-3ubuntu1.6+esm5
  4. Upgrade

    Upgrade ubuntu/glibc to a version that resolves this vulnerability.

    Fixed in 2.31-0ubuntu9.18
  5. Upgrade

    Upgrade ubuntu/glibc to a version that resolves this vulnerability.

    Fixed in 2.35-0ubuntu3.10

Event History

May 16, 2025
CVE Published
via MITRE·07:32 PM
Data Sourced
via MITRE·07:32 PM
DescriptionWeakness
Data Sourced
via OSV·08:15 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·08:15 PM
DescriptionWeakness
May 17, 2025
Data Sourced
via NVD·03:16 AM
Severity
May 19, 2025
News Published
via The Hacker News·10:00 AM
May 20, 2025
Data Sourced
via Red Hat·01:02 PM
DescriptionSeverityAffected Software
Updated
via NVD·02:15 PM
Severity
May 22, 2025
Event
via FIRST·12:00 AM
Jun 17, 2025
Data Sourced
via NVD·02:09 PM
RemedyAffected Software
Jul 23, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Sep 4, 2025
Data Sourced
via Microsoft·12:02 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·12:02 AM
Weakness
Updated
via Microsoft·12:02 AM
WeaknessAffected Software
Event
via Microsoft·12:02 AM
Updated
via Microsoft·07:02 AM
WeaknessAffected Software
Jan 9, 2026
Exploit Published
via GitHub·12:15 AM
Jan 30, 2026
Updated
via IBM·12:00 AM
Affected Software
Aug 7, 2026
Updated
via Microsoft·11:15 AM
Weakness

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2025-4802?

CVE-2025-4802 is considered a high severity vulnerability due to its potential to allow arbitrary code execution in setuid binaries.

2

How do I fix CVE-2025-4802?

To fix CVE-2025-4802, update the GNU C Library to a version later than 2.38.

3

Who is affected by CVE-2025-4802?

CVE-2025-4802 affects users of the GNU C Library versions between 2.27 and 2.38 that utilize setuid binaries.

4

What type of vulnerability is CVE-2025-4802?

CVE-2025-4802 is an untrusted LD_LIBRARY_PATH environment variable vulnerability.

5

What can an attacker do with CVE-2025-4802?

An attacker exploiting CVE-2025-4802 can control the loading of dynamically shared libraries in vulnerable applications, potentially leading to full system compromise.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203