# CVE-2026-29013: libcoap Out-of-Bounds Read in OSCORE CBOR Unwrap Handling

- Severity: High 8.8 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 33% of CVEs (2026-12-01)
- Published: 2026-04-17T21:11:38.137Z
- Modified: 2026-07-14T18:39:51.222Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: 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 out-of-bounds reads through integer wraparound in allocation size computation.

(As written by CVE List.)

## Affected

- libcoap libcoap: before v4.3.5b; before 4.3.5b

## Every score

- VulnCheck: CVSS:4.0 8.8 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/obgm/libcoap/commit/b7847c4dbb0dbee7c90b09a673d4cae256f03718> (patch)

## Sources

- CVE List: [CVE-2026-29013](https://www.cve.org/CVERecord?id=CVE-2026-29013), CVE Terms of Use, modified 2026-07-14
- NVD: [CVE-2026-29013](https://nvd.nist.gov/vuln/detail/CVE-2026-29013), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-29013 · Whole record: https://cve.day/CVE-2026-29013.json · Rebuilt by cve.day 2026-11-25T22:59:18.970Z
