CVE-2025-54764
Mbed TLS vulnerability analysis and mitigation

Overview

CVE-2025-54764 affects Mbed TLS versions up to 3.6.4, disclosed on October 15, 2025. The vulnerability involves a local timing attack against certain RSA operations and direct calls to mbedtlsmpimodinv or mbedtlsmpi_gcd functions. This security issue was independently discovered by two teams: the SSBleed team and the M-Step team (Mbed Advisory).

Technical details

The vulnerability exists in Mbed TLS's modular inversion routine and GCD routine, which are susceptible to local timing attacks. The affected operations include RSA key generation with any API, use of mbedtlsrsacomplete() for importing incomplete RSA private keys, and additional vulnerabilities when MBEDTLSRSANO_CRT is enabled. The vulnerability has been assigned a CVSS v3.1 Base Score of 6.2 MEDIUM (AttackerKB).

Impact

When exploited, the vulnerability allows an attacker to fully recover the RSA private key during vulnerable RSA operations. For direct calls to mbedtlsmpimodinv() or mbedtlsmpi_gcd(), the attacker can recover both inputs. The attack can be executed by a local attacker who can run code on the same core as the victim, without requiring elevated privileges (Mbed Advisory).

Mitigation and workarounds

Applications not using RSA private keys or not directly calling mbedtlsmpiinvmod() or mbedtlsmpigcd() are not affected. For applications that don't generate RSA keys or import private RSA keys with mbedtlsrsaimport()+mbedtlsrsacomplete(), recompiling without MBEDTLSRSANOCRT provides mitigation. The permanent fix is to upgrade to Mbed TLS 3.6.5 or TF-PSA-Crypto 1.0 (Mbed Advisory).

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
  • cpe:2.3:a:arm:mbed_tls
NoYesJul 20, 2025
CVE-2025-48965HIGH7.5
  • Mbed TLSMbed TLS
  • dolphin-emu-tool
NoYesJul 20, 2025
CVE-2025-54764MEDIUM6.2
  • Mbed TLSMbed TLS
  • cpe:2.3:a:arm:mbed_tls
NoYesOct 20, 2025
CVE-2025-59438MEDIUM5.3
  • Mbed TLSMbed TLS
  • cpe:2.3:a:arm:mbed_tls
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