Off-by-one Error Affecting mbedtls package, versions *


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.08% (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-UBUNTU2204-MBEDTLS-10664097
  • published9 Oct 2025
  • 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?

There is no fixed version for Ubuntu:22.04 mbedtls.

NVD Description

Note: Versions mentioned in the description apply only to the upstream mbedtls package and not the mbedtls package as distributed by Ubuntu. See How to fix? for Ubuntu:22.04 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.