CVE-2025-34468: libcoap Stack-Based Buffer Overflow in Address Resolution DoS or Potential RCE
libcoap versions up to and including 4.3.5, prior to commit 30db3ea, contain a stack-based buffer overflow in address resolution when attacker-controlled hostname data is copied into a fixed 256-byte stack buffer without proper bounds checking. A remote attacker can trigger a crash and potentially achieve remote code execution depending on compiler options and runtime memory protections. Exploitation requires the proxy logic to be enabled (i.e., the proxy request handling code path in an application using libcoap).
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
libcoapto a version that resolves this vulnerability.Fixed in 4.3.5Patch 30db3ea - Configuration
Disable the proxy request handling code path (proxy logic) in applications using libcoap, since exploitation requires the proxy logic to be enabled.
libcoap proxy logic / proxy request handling code path proxy request handling enabled = disable
Event History
Frequently Asked Questions
What is the severity of CVE-2025-34468?
CVE-2025-34468 is classified as a high severity vulnerability due to the potential for remote code execution through a stack-based buffer overflow.
How do I fix CVE-2025-34468?
To fix CVE-2025-34468, upgrade to libcoap version 4.4.0 or later, which includes a patch for the vulnerability.
Which versions are affected by CVE-2025-34468?
CVE-2025-34468 affects all libcoap versions up to and including 4.3.5.
What type of vulnerability is CVE-2025-34468?
CVE-2025-34468 is a stack-based buffer overflow vulnerability that could be exploited by attackers.
Can CVE-2025-34468 lead to Denial of Service?
Yes, CVE-2025-34468 can lead to Denial of Service by crashing the affected application.