CVE-2025-47917
Mbed TLS vulnerability analysis and mitigation

Overview

Mbed TLS before version 3.6.4 contains a use-after-free vulnerability that affects applications developed according to the documentation. The vulnerability was discovered and disclosed in July 2025, affecting the mbedtlsx509stringtonames() function implementation (NVD, Debian Tracker).

Technical details

The vulnerability stems from the mbedtlsx509stringtonames() function, which takes a head argument documented as an output argument. While the documentation doesn't indicate that the function will free the pointer, it calls mbedtlsasn1freenameddata_list() on that argument, performing a deep free operation. The vulnerability has been assigned a CVSS v3.1 base score of 8.9 (HIGH) with the vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:H and is classified as CWE-416 (Use After Free) (NVD, Rapid7).

Impact

The vulnerability results in application code potentially holding pointers to freed memory blocks, leading to a high risk of use-after-free or double-free conditions. This particularly affects two sample programs: x509/certwrite and x509/certreq, which experience use-after-free issues when the san string contains more than one DN (NVD).

Mitigation and workarounds

The vulnerability has been fixed in Mbed TLS version 3.6.4. Users are advised to upgrade to this version or later. For Debian systems, fixed packages are available in the trixie and sid releases with version 3.6.4-2 (Debian Tracker).

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
  • mbedtls
NoYesJul 20, 2025
CVE-2025-54764MEDIUM6.2
  • Mbed TLSMbed TLS
  • mbedtls
NoYesOct 20, 2025
CVE-2025-59438MEDIUM5.3
  • Mbed TLSMbed TLS
  • mbedtls
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