Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2025-4802

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

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-4802
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 11:20 UTC · Revision 1

Source evidence

CVE-2025-4802

core-osv · Original source

Published 16 May 2025, 19:32 UTC

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

osv:CVE-2025-4802
Complete source record
{
  "id": "a10cedae82251ff194c3340210377c30089bacfb30c0e381e78f5b020cae3faa",
  "url": "https://osv.dev/vulnerability/CVE-2025-4802",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2025-4802",
    "summary": "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).",
    "evidence": "osv:CVE-2025-4802",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-4802",
      "aliases": [
        "CVE-2025-4802"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/bminor/glibc",
              "type": "GIT",
              "events": [
                {
                  "introduced": "23158b08a0908f381459f273a984c6fd328363cb"
                },
                {
                  "last_affected": "36f2487f13e3540be9ee0fb51876b1da72176d3f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:gnu:glibc:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.27"
                      },
                      {
                        "last_affected": "2.38"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "glibc-2.38",
            "glibc-2.37",
            "glibc-2.37.9000",
            "glibc-2.36",
            "glibc-2.36.9000",
            "glibc-2.35",
            "glibc-2.35.9000",
            "glibc-2.34",
            "glibc-2.34.9000",
            "glibc-2.33",
            "glibc-2.33.9000",
            "glibc-2.32",
            "glibc-2.32.9000",
            "glibc-2.31",
            "glibc-2.31.9000",
            "changelog-ends-here",
            "glibc-2.30",
            "glibc-2.30.9000",
            "glibc-2.29",
            "glibc-2.29.9000",
            "glibc-2.28",
            "glibc-2.28.9000",
            "glibc-2.27",
            "glibc-2.27.9000"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-4802.json"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://sourceware.org/git/glibc.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "23158b08a0908f381459f273a984c6fd328363cb"
                },
                {
                  "last_affected": "36f2487f13e3540be9ee0fb51876b1da72176d3f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:gnu:glibc:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.27"
                      },
                      {
                        "last_affected": "2.38"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "glibc-2.38",
            "glibc-2.37",
            "glibc-2.37.9000",
            "glibc-2.36",
            "glibc-2.36.9000",
            "glibc-2.35",
            "glibc-2.35.9000",
            "glibc-2.34",
            "glibc-2.34.9000",
            "glibc-2.33",
            "glibc-2.33.9000",
            "glibc-2.32",
            "glibc-2.32.9000",
            "glibc-2.31",
            "glibc-2.31.9000",
            "changelog-ends-here",
            "glibc-2.30",
            "glibc-2.30.9000",
            "glibc-2.29",
            "glibc-2.29.9000",
            "glibc-2.28",
            "glibc-2.28.9000",
            "glibc-2.27",
            "glibc-2.27.9000"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-4802.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:28.108812950Z",
      "provider": "osv",
      "references": [
        "https://lists.debian.org/debian-lts-announce/2025/05/msg00033.html",
        "https://sourceware.org/cgit/glibc/commit/?id=1e18586c5820e329f741d5c710275e165581380e",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/4xxx/CVE-2025-4802.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-4802",
        "https://sourceware.org/bugzilla/show_bug.cgi?id=32976"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-426"
        ],
        "cna_assigner": "glibc",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "2.27"
                  },
                  {
                    "fixed": "2.39"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/4xxx/CVE-2025-4802.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-4802",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 494902,
  "published_at": "2025-05-16T19:32:50.586+00:00"
}