CVE-2025-34468

Critical

Description

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

SeverityCritical
CVSS9.8
Exploit probability—
ProductLibcoap
PublishedDec 31, 2025
First seenDec 31, 2025
Weakness typeCWE-121CWE-121

How to fix

Affected products

ProductAffected versionsFixed in
libcoap libcoapv ≤ 4.3.5—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.