Heap-based Buffer Overflow Affecting mbedtls package, versions [,2.28.4)[3.0.0,3.4.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.64% (70th 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 IDSNYK-CONAN-MBEDTLS-10077652
  • published8 May 2025
  • disclosed16 Dec 2022
  • creditUnknown

Introduced: 16 Dec 2022

CVE-2022-46393  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade mbedtls to version 2.28.4, 3.4.1 or higher.

Overview

Affected versions of this package are vulnerable to Heap-based Buffer Overflow in DTLS if MBEDTLS_SSL_DTLS_CONNECTION_ID is enabled and MBEDTLS_SSL_CID_IN_LEN_MAX > 2 * MBEDTLS_SSL_CID_OUT_LEN_MAX.

CVSS Base Scores

version 3.1