CVE-2025-34468
criticallibcoap versions up to and including 4.3.5, prior to commit 30db3ea, contain a stack-based buffer overflow in address resolution when attacker-controlled hostn…
Vendor / product: Libcoap — libcoap
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).
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Affected products
Weakness classification (CWE)
Source: NVD / CISA. “NVD-CWE-Other” and “NVD-CWE-noinfo” mean NVD could not assign a specific weakness.
Mitigation & advisories
References
- https://github.com/obgm/libcoap/commit/30db3ea disclosure@vulncheck.com
- https://github.com/obgm/libcoap/pull/1737 disclosure@vulncheck.com
- https://libcoap.net/ disclosure@vulncheck.com
- https://www.vulncheck.com/advisories/libcoap-stack-based-buffer-overflow-in-address-resolu... disclosure@vulncheck.com
