CVE-2026-29013
libcoap contains out-of-bounds read vulnerabilities in OSCORE Appendix ...
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD.
Description
libcoap contains out-of-bounds read vulnerabilities in OSCORE Appendix B.2 CBOR unwrap handling where get_byte_inc() in src/oscore/oscore_cbor.c relies solely on assert() for bounds checking, which is removed in release builds compiled with NDEBUG. Attackers can send crafted CoAP requests with malformed OSCORE options or responses during OSCORE negotiation to trigger out-of-bounds reads during CBOR parsing and potentially cause out-of-bounds reads through integer wraparound in allocation size computation.
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.5-r0 |
| rapidfort alpine 3.21 | libcoap | 4.3.5a-r0 |
| rapidfort alpine 3.22 | libcoap | 4.3.5a-r0 |
| rapidfort alpine 3.23 | libcoap | 4.3.5a-r0 |
| rapidfort alpine 3.24 | libcoap | 4.3.5a-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.5-r0 |
| rapidfort alpine 3.21 | libcoap | 4.3.5a-r0 |
| rapidfort alpine 3.22 | libcoap | 4.3.5a-r0 |
| rapidfort alpine 3.23 | libcoap | 4.3.5a-r0 |
| rapidfort alpine 3.24 | libcoap | 4.3.5a-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 |