Integer Overflow or Wraparound 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.15% (36th 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 Integer Overflow or Wraparound vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CONAN-LIBCOAP-14105089
  • published25 Nov 2025
  • disclosed24 Nov 2025
  • creditQingpeng Du

Introduced: 24 Nov 2025

CVE-2025-65495  (opens in a new tab)
CWE-190  (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 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