Integer Overflow or Wraparound Affecting libcoap package, versions [0,]


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

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 IDSNYK-CONAN-LIBCOAP-14105089
  • published25 Nov 2025
  • disclosed24 Nov 2025
  • creditQingpeng Du

Introduced: 24 Nov 2025

NewCVE-2025-65495  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound via the tls_verify_call_back() function. An attacker can trigger a denial of service by supplying a specially crafted TLS certificate that causes i2d_X509() to return -1, which is then misused as a parameter to malloc(), potentially leading to a crash.

CVSS Base Scores

version 4.0
version 3.1