obgm libcoap
- < v4.3.5b
A vulnerability allowing out-of-bounds read has been identified in libcoap versions prior to 4.3.5b. This issue arises in the OSCORE Appendix B.2 CBOR unwrap handling, where the function get_byte_inc() in 'src/oscore/oscore_cbor.c' relies solely on assert() for bounds checking. This assertion is removed in release builds compiled with NDEBUG. Exploitation can occur when attackers send crafted CoAP requests with malformed OSCORE options or responses during OSCORE negotiation. This can trigger out-of-bounds reads during CBOR parsing, potentially leading to heap buffer overflow writes through integer wraparound in allocation size computation.
Exploitation of this vulnerability causes an out-of-bounds read, which can lead to a heap buffer overflow.
Users can upgrade to libcoap version 4.3.5b or later to address this vulnerability.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.