libcoap Out-of-Bounds Read in OSCORE CBOR Unwrap Handling
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- High · Low · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA libcoap (libcoap) Fixed in v4.3.5b
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-29013
- 2026-10-03 Alias added: GHSA-4vrr-6f8v-98rf
More Libcoap vulnerabilities
- TI-2024-00887 obgm libcoap Configuration File coap_oscore.c get_split_entry stack-based overflow CVSS 3.1HIGH 7.8
- TI-2024-20447 An issue in `coap_pdu.c` in libcoap 4.3.4 allows attackers to cause undefined behavior… CVSS 3.1HIGH 7.5
- TI-2023-17937 libcoap 4.3.1 contains a buffer over-read via the function coap_parse_oscore_conf_mem at coap_oscore.c. CVSS 3.1MEDIUM 6.5
- TI-2023-14242 Buffer Overflow vulnerability in coap_send function in libcoap library 4.3.1-103-g52cfd56… CVSS 3.1HIGH 7.5
- TI-2025-40369 NULL pointer dereference in src/coap_openssl.c in OISM libcoap 4.3.5 allows remote… CVSS 3.1HIGH 7.5
- TI-2025-40371 Integer signedness error in tls_verify_call_back() in src/coap_openssl.c in OISM libcoap… CVSS 3.1HIGH 7.5
Sources
- CVE-2026-29013 · CVE Program
- CVE-2026-29013 · NVD
- FIRST EPSS
- GHSA-4vrr-6f8v-98rf · GitHub Advisory Database · CC BY 4.0
- CVE-2026-29013 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences