Off-by-one Error Affecting mbedtls3 package, versions <3.6.4-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.33% (25th 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-ALPINE324-MBEDTLS3-17301376
  • published11 Jun 2026
  • disclosed4 Jul 2025

Introduced: 4 Jul 2025

CVE-2025-52497  (opens in a new tab)
CWE-193  (opens in a new tab)

How to fix?

Upgrade Alpine:3.24 mbedtls3 to version 3.6.4-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream mbedtls3 package and not the mbedtls3 package as distributed by Alpine. See How to fix? for Alpine:3.24 relevant fixed versions and status.

Mbed TLS before 3.6.4 has a PEM parsing one-byte heap-based buffer underflow, in mbedtls_pem_read_buffer and two mbedtls_pk_parse functions, via untrusted PEM input.