Skip to main content
Public proof of conceptFix available

CVE-2025-47917

A public proof of concept exists; no exploitation attested.

  • Published2025-07-20
  • Fixed in3.6.4
  • WeaknessCWE-416

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

Mbed TLS before 3.6.4 allows a use-after-free in certain situations of applications that are developed in accordance with the documentation. The function mbedtls_x509_string_to_names() takes a head argument that is documented as an output argument. The documentation does not suggest that the function will free that pointer; however, the function does call mbedtls_asn1_free_named_data_list() on that argument, which performs a deep free(). As a result, application code that uses this function (relying only on documented behavior) is likely to still hold pointers to the memory blocks that were freed, resulting in a high risk of use-after-free or double-free. In particular, the two sample programs x509/cert_write and x509/cert_req are affected (use-after-free if the san string contains more than one DN).

Timeline

dates in UTC
  1. 2025-07-2019:15CVE publishedNVD
  2. 2025-09-16Exploit-DB entryExploit-DB

Versions per branch

NVD
Arm mbed tls
BranchAffectedFixed in
3.6< 3.6.43.6.4

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As mitre, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • mbedtlsother versions: not affected
    Affected
    • < 3.6.4fixed in 3.6.4custom

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2025-07-20

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • mbedtlsUbuntu:Pro:24.04:LTSall versions · fixed in 2.28.8-1ubuntu0.1~esm1
  • mbedtlsUbuntu:Pro:22.04:LTSall versions · fixed in 2.28.0-1ubuntu0.1~esm1
  • mbedtlsUbuntu:Pro:20.04:LTSall versions · fixed in 2.16.4-1ubuntu2+esm1
  • mbedtlsUbuntu:Pro:18.04:LTSall versions · fixed in 2.8.0-1ubuntu0.1~esm1
  • mbedtlsUbuntu:25.10all versions · no fixed version listed
  • mbedtlsUbuntu:16.04:LTSall versions · no fixed version listed
  • mbedtlsRoot:Debian:12all versions · fixed in 2.28.3-1.root.io.14and 1 other package
  • mbedtlsRoot:Debian:12all versions · fixed in 2.28.3-1.aikido.17and 1 other package

26 more package ranges on OSV.dev

Vendor advisories

  • CVE-2025-47917 Red Hat Product Security

    mbedtls: Mbed TLS Use-After-Free Vulnerability

Full record on NVD

Fix

  1. Update Arm mbed tls to 3.6.4

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
EDB-52427
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2025-07-20
Last modified
2026-06-17
NVD status
Modified
GitHub advisory
GHSA-7xcg-xp2h-m42v

Frequently asked questions

What is CVE-2025-47917?

Mbed TLS before 3.6.4 allows a use-after-free in certain situations of applications that are developed in accordance with the documentation. The function mbedtls_x509_string_to_names() takes a head argument that is documented as an output argument. The documentation does not suggest that the function will free that pointer; however, the function does call mbedtls_asn1_free_named_data_list() on that argument, which performs a deep free(). As a result, application code that uses this function (relying only on documented behavior) is likely to still hold pointers to the memory blocks that were freed, resulting in a high risk of use-after-free or double-free. In particular, the two sample programs x509/cert_write and x509/cert_req are affected (use-after-free if the san string contains more than one DN).

Is CVE-2025-47917 actively exploited?

Active exploitation of CVE-2025-47917 has not been confirmed. Its EPSS score was 2.4% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2025-47917?

CVE-2025-47917 has a CVSS v3 base score of 9.8 (Critical severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running mbedtls? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record