Out-of-bounds Read Affecting mbedtls package, versions [3.4.1,3.6.4)


Severity

Recommended
0.0
medium
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 IDSNYK-CONAN-MBEDTLS-10768241
  • published17 Jul 2025
  • disclosed4 Jul 2025
  • creditLinh Le, Ngan Nguyen

Introduced: 4 Jul 2025

NewCVE-2025-49601  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade mbedtls to version 3.6.4 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read via the mbedtls_lms_import_public_key function. An attacker can cause a crash or disclose limited adjacent memory by providing a truncated LMS public-key buffer that is less than four bytes in length.

Workaround

For the users that are unable to upgrade to the fixed version it is recommended to validate that the key provided to mbedtls_lms_import_public_key() is at least 4 bytes long.

CVSS Base Scores

version 4.0
version 3.1