Skip to content

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

HighCVSS 8.8 EPSS 0.30%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

8 packages: 3 fixed, 5 with no fix yet.

PackageAffectedFixed inStatus
debian/libcoap3(Debian 12) = 4.3.1-1; = 4.3.1-2; = 4.3.3-1; = 4.3.4-1 +7 more No fix listed No fix yet
ubuntu/libcoap3(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/libcoap3(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/libcoap3(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/libcoap3(Ubuntu 26.10) All versions No fix listed No fix yet
debian/libcoap3(Debian 13) < 4.3.4-1.1+deb13u3; = 4.3.4-1.1; = 4.3.4-1.1+deb13u1; = 4.3.4-1.1+deb13u2 4.3.4-1.1+deb13u3 Fixed
debian/libcoap3(Debian 14) < 4.3.5-3; = 4.3.4-1.1; = 4.3.5-1; = 4.3.5-2 4.3.5-3 Fixed
libcoap < 4.3.5b; < v4.3.5b 4.3.5b, v4.3.5b Fixed

Affected products

ProductAffected versionsFixed in
libcoap < v4.3.5b v4.3.5b
debian/libcoap3(Debian:12) All versions No fix listed
debian/libcoap3(Debian:12) = 4.3.1-1 No fix listed
debian/libcoap3(Debian:12) = 4.3.1-2 No fix listed
debian/libcoap3(Debian:12) = 4.3.3-1 No fix listed
debian/libcoap3(Debian:12) = 4.3.4-1 No fix listed
debian/libcoap3(Debian:12) = 4.3.4-1.1 No fix listed
debian/libcoap3(Debian:12) = 4.3.4-1.1~exp1 No fix listed
debian/libcoap3(Debian:12) = 4.3.5-1 No fix listed
debian/libcoap3(Debian:12) = 4.3.5-2 No fix listed
debian/libcoap3(Debian:12) = 4.3.5-3 No fix listed
debian/libcoap3(Debian:12) = 4.3.5-4 No fix listed
debian/libcoap3(Debian:13) < 4.3.4-1.1+deb13u3 4.3.4-1.1+deb13u3
debian/libcoap3(Debian:13) = 4.3.4-1.1 No fix listed
debian/libcoap3(Debian:13) = 4.3.4-1.1+deb13u1 No fix listed
debian/libcoap3(Debian:13) = 4.3.4-1.1+deb13u2 No fix listed
debian/libcoap3(Debian:14) < 4.3.5-3 4.3.5-3
debian/libcoap3(Debian:14) = 4.3.4-1.1 No fix listed
debian/libcoap3(Debian:14) = 4.3.5-1 No fix listed
debian/libcoap3(Debian:14) = 4.3.5-2 No fix listed
ubuntu/libcoap3(Ubuntu:24.04) All versions No fix listed
ubuntu/libcoap3(Ubuntu:26.04) All versions No fix listed
ubuntu/libcoap3(Ubuntu:26.10) All versions No fix listed
libcoap < 4.3.5b 4.3.5b
ubuntu/libcoap3(Ubuntu:22.04) All versions No fix listed

References