CVE-2025-52497
Mbed TLS vulnerability analysis and mitigation

Overview

Mbed TLS before version 3.6.4 contains a PEM parsing vulnerability identified as CVE-2025-52497. The vulnerability manifests as a one-byte heap-based buffer underflow in the mbedtls_pem_read_buffer and two mbedtls_pk_parse functions when processing untrusted PEM input. This security issue was disclosed on July 4, 2025, affecting all versions of Mbed TLS prior to 3.6.4 (NVD, Ubuntu).

Technical details

The vulnerability is classified as a medium severity issue with a CVSS v3.1 base score of 4.8. The attack vector is network-based (AV:N) with high attack complexity (AC:H), requiring no privileges (PR:N) or user interaction (UI:N). The scope is unchanged (S:U) with low impacts on confidentiality (C:L) and availability (A:L), but no impact on integrity (I:N). The vulnerability is categorized as CWE-193 (Off-by-one Error) (NVD).

Impact

The heap-based buffer underflow vulnerability can potentially lead to system crashes and limited information disclosure when processing untrusted PEM input. The vulnerability affects the confidentiality and availability of systems using affected versions of Mbed TLS, though the impact is considered low due to the high attack complexity required (NVD).

Mitigation and workarounds

The primary mitigation is to upgrade to Mbed TLS version 3.6.4 or later, which contains the fix for this vulnerability. Various Linux distributions, including Ubuntu, have marked this vulnerability for evaluation and are working on providing updated packages (Ubuntu).

Additional resources


SourceThis report was generated using AI

Related Mbed TLS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-47917CRITICAL9.8
  • Mbed TLSMbed TLS
  • dolphin-emu-nogui-debuginfo
NoYesJul 20, 2025
CVE-2025-48965HIGH7.5
  • Mbed TLSMbed TLS
  • dolphin-emu
NoYesJul 20, 2025
CVE-2025-54764MEDIUM6.2
  • Mbed TLSMbed TLS
  • mbedtls-devel
NoYesOct 20, 2025
CVE-2025-59438MEDIUM5.3
  • Mbed TLSMbed TLS
  • micropython
NoYesOct 21, 2025
CVE-2025-49087LOW3.7
  • Mbed TLSMbed TLS
  • mbedtls
NoYesJul 20, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management