CVE-2025-47917
A public proof of concept exists; no exploitation attested.
- Published2025-07-20
- Fixed in3.6.4
- WeaknessCWE-416
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2025-07-2019:15CVE publishedNVD
- 2025-09-16Exploit-DB entryExploit-DB
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 3.6 | < 3.6.4 | 3.6.4 | NVD |
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 affectedAffected
- < 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
Fix
- Update Arm mbed tls to 3.6.4
Advisories and patches
- github.comMitigation
- mbed-tls.readthedocs.ioVendor Advisory
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Proof of concept
- PoC-in-GitHub1 repository, unverifiedknown since 2026-11-01byteReaper77/CVE-2025-47917
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionnone2025-07-22
- CNACVSS 3.18.9known since 2026-10-23
- NVDCVSS 3.19.8read 2026-10-23
- CNAweakness (CWE)CWE-416known since 2026-10-23
- FIRST EPSSEPSS score2.4 %2026-12-04
- PoC-in-GitHubproof of concept1known since 2026-11-01
- Exploit-DBdetectionread 2026-12-04
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- EUVD-2025-22035same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-7xcg-xp2h-m42vsame flawGitHub Advisory Database · CC-BY-4.0
- JLSEC-2025-231same flawJulia Security Advisories · CC-BY-4.0
- DLA-4274-1advisory covering several CVEsDebian · LicenseRef-unstated
- DLA-4274-2advisory covering several CVEsDebian · LicenseRef-unstated
- openSUSE-SU-2026:21144-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- USN-8123-1advisory covering several CVEsUbuntu
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?
Is CVE-2025-47917 actively exploited?
What is the CVSS score for CVE-2025-47917?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- Exploit-DB · Exploit-DB terms of service · terms restrict redistribution
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-7xcg-xp2h-m42v
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0