CVE-2026-29013
Received Received - Intake
Out-of-Bounds Read and Heap Overflow in libcoap OSCORE Parsing

Publication date: 2026-04-17

Last updated on: 2026-04-20

Assigner: VulnCheck

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 heap buffer overflow writes through integer wraparound in allocation size computation.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-04-17
Last Modified
2026-04-20
Generated
2026-05-06
AI Q&A
2026-04-18
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
libcoap libcoap *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-125 The product reads data past the end, or before the beginning, of the intended buffer.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability exists in libcoap's handling of OSCORE Appendix B.2 CBOR unwrap processing. Specifically, the function get_byte_inc() in src/oscore/oscore_cbor.c uses assert() for bounds checking, which is removed in release builds compiled with NDEBUG. As a result, attackers can send specially crafted CoAP requests with malformed OSCORE options or responses during OSCORE negotiation. This can trigger out-of-bounds reads during CBOR parsing and may lead to heap buffer overflow writes caused by integer wraparound in allocation size calculations.


How can this vulnerability impact me? :

The vulnerability can allow attackers to cause out-of-bounds memory reads and potentially heap buffer overflow writes. This can lead to memory corruption, which might be exploited to crash the application, cause denial of service, or execute arbitrary code remotely without any privileges or user interaction.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart