CVE-2025-47917 in Arm Mbed Tls
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 ...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Arm | Mbed Tls | < 3.6.4 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official 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).
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-47917 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-300155-C |
| CVSS 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 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-416: Use After Free
Software references memory after it has been freed, leading to corruption, crashes, or code execution.
Analysis AI-written, not human-reviewed
CVE-2025-47917 affects Mbed TLS versions before 3.6.4, introducing a use-after-free vulnerability in the mbedtls_x509_string_to_names() function. This can lead to arbitrary code execution with the privileges of the affected application.
An attacker could exploit this vulnerability by crafting a malicious X.509 certificate that, when processed by an application using the affected Mbed TLS version, triggers the use-after-free condition. This could result in remote code execution if the application processes untrusted X.509 certificates.
Questions
What is CVE-2025-47917?
CVE-2025-47917 affects Mbed TLS versions before 3.6.4, introducing a use-after-free vulnerability in the mbedtls_x509_string_to_names() function. This can lead to arbitrary code execution with the privileges of the affected application.
What is the CVSS score for CVE-2025-47917?
CVE-2025-47917 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 2.9%.
Is CVE-2025-47917 actively exploited?
Public exploit available for CVE-2025-47917. Exploitation risk elevated.
How do I remediate CVE-2025-47917?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2025-47917?
CVE-2025-47917 affects Arm Mbed Tls.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Arm","product":"Mbed Tls","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.