Skip to main content
Disclosures

obgm · libcoap

Static Buffer Overflow in Address Resolution

8.2high
SecMateSECMATE-2025-0001
Vendorobgm
Productlibcoap
VectorCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
AdvisoryPR #1737
Timeline
Reported
Sep 10, 2025
Fixed
Sep 15, 2025
Published
Dec 31, 2025
Summary

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

What's hidden in yours?

Find out