Vulnerabilities · 2025 · Libcoap
CVE-2025-34468
Libcoap vulnerability
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).
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Libcoap. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Libcoap runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
More vulnerabilities in Libcoap products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.