Out-of-bounds Read in Libcoap
CVE-2026-29013
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.
Vulnerability class: Buffer Overflow
EPSS: 0.003 (21.9th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Libcoap — versions 0
Weakness classification (CWE)
References
- disclosure@vulncheck.com (Patch, patch)
Frequently asked questions
- What is CVE-2026-29013?
- CVE-2026-29013 is a critical-severity vulnerability in Libcoap, classified under Out-of-bounds Read. CVSS score: 9.8/10. Published 2026-04-17.
- How severe is CVE-2026-29013?
- Critical severity. CVSS v3 base score is 9.8 out of 10.