CVE Vulnerabilities

CVE-2025-4802

Untrusted Search Path

Published: May 16, 2025 | Modified: Nov 03, 2025
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
7 MODERATE
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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

Weakness

The product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product’s direct control.

Affected Software

NameVendorStart VersionEnd Version
GlibcGnu2.27 (including)2.38 (including)
Red Hat Enterprise Linux 7.7 Advanced Update SupportRedHatglibc-0:2.17-292.el7_7.3*
Red Hat Enterprise Linux 7 Extended Lifecycle SupportRedHatglibc-0:2.17-326.el7_9.5*
Red Hat Enterprise Linux 8RedHatglibc-0:2.28-251.el8_10.22*
Red Hat Enterprise Linux 8RedHatglibc-0:2.28-251.el8_10.22*
Red Hat Enterprise Linux 9RedHatglibc-0:2.34-168.el9_6.19*
Red Hat Enterprise Linux 9RedHatglibc-0:2.34-168.el9_6.19*
Red Hat Enterprise Linux 9.4 Extended Update SupportRedHatglibc-0:2.34-100.el9_4.12*
Red Hat OpenShift Container Platform 4.16RedHatrhcos-416.94.202506251808-0*
Red Hat OpenShift Container Platform 4.17RedHatrhcos-417.94.202507021305-0*
Red Hat OpenShift Container Platform 4.18RedHatrhcos-418.94.202506251005-0*
Red Hat OpenShift Container Platform 4.19RedHatrhcos-4.19.9.6.202506252250-0*
Red Hat Discovery 1.14RedHatdiscovery/discovery-server-rhel9:sha256:dcd0d1f2506998720ba82cbb4090151f4c7dfc209e9f938bd3a5898b28e5be34*
Red Hat Discovery 2RedHatdiscovery/discovery-server-rhel9:sha256:bd9cb502def3153c193713b56372694cb555a71b38d4fc0fd9d021bccc5602de*
GlibcUbuntuesm-infra/bionic*
GlibcUbuntuesm-infra/focal*
GlibcUbuntufocal*
GlibcUbuntujammy*

Extended Description

This might allow attackers to execute their own programs, access unauthorized data files, or modify configuration in unexpected ways. If the product uses a search path to locate critical resources such as programs, then an attacker could modify that search path to point to a malicious program, which the targeted product would then execute. The problem extends to any type of critical resource that the product trusts. Some of the most common variants of untrusted search path are:

Potential Mitigations

References