CVE-2025-34468
libcoap versions up to and including 4.3.5, prior to commit 30db3ea, c ...
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD.
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).
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| debian 12 | libcoap3 | no fix listed |
| debian 13 | libcoap3 | 4.3.4-1.1+deb13u3 |
| debian 14 | libcoap3 | 4.3.5-3 |
| echo | libcoap3 | 4.3.4-1.1+deb13u3 |
| rapidfort alpine 3.20 | libcoap | 4.3.5b-r0 |
| rapidfort alpine 3.21 | libcoap | 4.3.5b-r0 |
| rapidfort alpine 3.22 | libcoap | 4.3.5b-r0 |
| rapidfort alpine 3.23 | libcoap | 4.3.5b-r0 |
| rapidfort alpine 3.24 | libcoap | 4.3.5b-r0 |
| rapidfort debian 12 | libcoap3 | 0:4.3.4-1.1+deb13u3, 0:4.3.5-3 |
| rapidfort debian 13 | libcoap3 | 0:4.3.4-1.1+deb13u3, 0:4.3.5-3 |
| rapidfort fedora 43 | libcoap, libcoap-devel, libcoap-doc and 1 more | 4.3.5b-1.fc43 |
Show all 15 entries from 12 sources
| Source | Package | Fixed in |
|---|---|---|
| debian 12 | libcoap3 | no fix listed |
| debian 13 | libcoap3 | 4.3.4-1.1+deb13u3 |
| debian 14 | libcoap3 | 4.3.5-3 |
| echo | libcoap3 | 4.3.4-1.1+deb13u3 |
| rapidfort alpine 3.20 | libcoap | 4.3.5b-r0 |
| rapidfort alpine 3.21 | libcoap | 4.3.5b-r0 |
| rapidfort alpine 3.22 | libcoap | 4.3.5b-r0 |
| rapidfort alpine 3.23 | libcoap | 4.3.5b-r0 |
| rapidfort alpine 3.24 | libcoap | 4.3.5b-r0 |
| rapidfort debian 12 | libcoap3 | 0:4.3.4-1.1+deb13u3, 0:4.3.5-3 |
| rapidfort debian 13 | libcoap3 | 0:4.3.4-1.1+deb13u3, 0:4.3.5-3 |
| rapidfort fedora 43 | libcoap | 4.3.5b-1.fc43 |
| rapidfort fedora 43 | libcoap-devel | 4.3.5b-1.fc43 |
| rapidfort fedora 43 | libcoap-doc | 4.3.5b-1.fc43 |
| rapidfort fedora 43 | libcoap-utils | 4.3.5b-1.fc43 |