Out-of-bounds Read Affecting libcoap package, versions [,cci.20200424)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (16th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Out-of-bounds Read vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CONAN-LIBCOAP-16125196
  • published22 Apr 2026
  • disclosed17 Apr 2026
  • creditKazuma Matsumoto

Introduced: 17 Apr 2026

CVE-2026-29013  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade libcoap to version cci.20200424 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read in the get_byte_inc() function during CBOR parsing in OSCORE negotiation. An attacker can access sensitive memory contents or cause a heap buffer overflow by sending specially crafted CoAP requests with malformed OSCORE options or responses.

Note:

This is only exploitable if the library is compiled with NDEBUG, which disables assert-based bounds checking.

References

CVSS Base Scores

version 4.0
version 3.1