CVE-2025-52497 Memory corruption in mbedtls
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.
Other vulnerabilities in Arm Mbed Tls
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.