CVE-2025-52497 Memory corruption in mbedtls

Medium 4.8 Published Updated

A heap-based buffer underflow in Mbed TLS allows attackers to cause denial of service or potentially execute code via malicious PEM input.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-52497?

CVE-2025-52497 is a medium-severity memory corruption vulnerability in Arm Mbed Tls, published on 4 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-193

Which versions are affected by CVE-2025-52497?

It affects 1 product.

Products include Arm Mbed Tls.

How do I fix CVE-2025-52497?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-52497 being exploited?

There is no known exploitation of CVE-2025-52497 in the wild and no public exploit code.

All Arm Mbed Tls vulnerabilities

Sources

Also known as ALPINE-CVE-2025-52497, DEBIAN-CVE-2025-52497, GHSA-3p24-8mw5-x2hx, JLSEC-2025-229, ROOT-OS-DEBIAN-12-CVE-2025-52497, UBUNTU-CVE-2025-52497.

Is CVE-2025-52497 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free