Vulnerabilities / CVE-2026-29013

critical

CVE-2026-29013

libcoap contains out-of-bounds read vulnerabilities in OSCORE Appendix ...

Published Modified CWE 125
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD.

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.

Affected packages and fixed versions

SourcePackageFixed in
debian 12libcoap3no fix listed
debian 13libcoap34.3.4-1.1+deb13u3
debian 14libcoap34.3.5-3
echolibcoap34.3.4-1.1+deb13u3
rapidfort alpine 3.20libcoap4.3.5-r0
rapidfort alpine 3.21libcoap4.3.5a-r0
rapidfort alpine 3.22libcoap4.3.5a-r0
rapidfort alpine 3.23libcoap4.3.5a-r0
rapidfort alpine 3.24libcoap4.3.5a-r0
rapidfort debian 12libcoap30:4.3.4-1.1+deb13u3, 0:4.3.5-3
rapidfort debian 13libcoap30:4.3.4-1.1+deb13u3, 0:4.3.5-3
rapidfort fedora 43libcoap, libcoap-devel, libcoap-doc and 1 more4.3.5b-1.fc43
Show all 15 entries from 12 sources
SourcePackageFixed in
debian 12libcoap3no fix listed
debian 13libcoap34.3.4-1.1+deb13u3
debian 14libcoap34.3.5-3
echolibcoap34.3.4-1.1+deb13u3
rapidfort alpine 3.20libcoap4.3.5-r0
rapidfort alpine 3.21libcoap4.3.5a-r0
rapidfort alpine 3.22libcoap4.3.5a-r0
rapidfort alpine 3.23libcoap4.3.5a-r0
rapidfort alpine 3.24libcoap4.3.5a-r0
rapidfort debian 12libcoap30:4.3.4-1.1+deb13u3, 0:4.3.5-3
rapidfort debian 13libcoap30:4.3.4-1.1+deb13u3, 0:4.3.5-3
rapidfort fedora 43libcoap4.3.5b-1.fc43
rapidfort fedora 43libcoap-devel4.3.5b-1.fc43
rapidfort fedora 43libcoap-doc4.3.5b-1.fc43
rapidfort fedora 43libcoap-utils4.3.5b-1.fc43

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.