CVE-2026-29013: Vulnerability in Libcoap

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

CWE-125

Exploitation
None confirmed
Severity
9.8 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-125
Published
17 Apr 2026
Last change
17 Jun 2026

Affected products

Affected versions and the first fixed release

  • Libcoap Before 4.3.5b. Fixed in 4.3.5b

Patches and fixes

Updates, commits and release notes

Related