Use After Free Affecting mbedtls package, versions [,3.6.4)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.06% (19th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CONAN-MBEDTLS-11775548
  • published11 Aug 2025
  • disclosed20 Jul 2025
  • creditLinh Le, Ngan Nguyen

Introduced: 20 Jul 2025

NewCVE-2025-47917  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade mbedtls to version 3.6.4 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free in the mbedtls_x509_string_to_names function. An attacker can potentially achieve code execution, information disclosure, or cause a denial of service by triggering use of memory after it has been freed, such as by manipulating the san string to contain more than one DN in affected sample programs.

CVSS Base Scores

version 4.0
version 3.1