Stack-based buffer overflow in libcoap - CVE-2025-34468

 

Stack-based buffer overflow in libcoap - CVE-2025-34468

Published: January 12, 2026


Vulnerability identifier: #VU121175
CSH Severity: High
CVSS v4: 9.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-34468
CWE-ID: CWE-121
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the coap_resolve_address_info() function in src/coap_address.c when proxy logic is enabled. A remote attacker can pass an overly long hostname to the application, trigger a stack-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

libcoap

How to mitigate CVE-2025-34468

Install updates from vendor's website.

libcoap - update to 4.3.5a

External References

Related Security Bulletins