{"schemaVersion":3,"id":"CVE-2025-52497","aliases":["ALPINE-CVE-2025-52497","UBUNTU-CVE-2025-52497","DEBIAN-CVE-2025-52497"],"status":"published","duplicateOf":null,"title":null,"description":"Mbed TLS before 3.6.4 has a PEM parsing one-byte heap-based buffer underflow, in mbedtls_pem_read_buffer and two mbedtls_pk_parse functions, via untrusted PEM input.","dates":{"published":"2025-07-04T00:00:00.000Z","modified":"2025-11-03T20:05:52.109Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.8,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":4.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L","exploitability":5.6,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":4.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L","exploitability":5.6,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":4.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L","exploitability":5.6,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00331,"percentile":0.24808,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.05400000000000001,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00277},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00331,"percentile":0.24808}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00308,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00331,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00331,"percentile":0.24808}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-193","name":"Off-by-one Error","description":"A product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/193.html"}],"affected":[{"vendor":"alpine","product":"mbedtls","name":"mbedtls","label":"mbedtls","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/mbedtls","purlType":"apk","versions":[{"text":"< 3.6.4-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.6.4-r0","eol":null,"hubHref":null},{"vendor":"arm","product":"mbed_tls","name":"mbed tls","label":"mbed_tls","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.6.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.6.4","eol":null,"hubHref":"/vendor/arm/mbed_tls"},{"vendor":"debian","product":"mbedtls","name":"mbedtls","label":"mbedtls","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/mbedtls","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 3.6.4-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 3.6.4-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"mbedtls","name":"mbedtls","label":"mbedtls","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/mbedtls","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 2.8.0-1ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.16.4-1ubuntu2+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.28.0-1ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.28.8-1ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 2.8.0-1ubuntu0.1~esm1 | < 2.16.4-1ubuntu2+esm1 | < 2.28.0-1ubuntu0.1~esm1 | < 2.28.8-1ubuntu0.1~esm1","eol":null,"hubHref":null},{"vendor":"mbed","product":"mbedtls","name":"mbedtls","label":"mbedtls","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.6.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.6.4","eol":null,"hubHref":"/vendor/mbed/mbedtls"}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/Mbed-TLS/mbedtls-docs/blob/main/security-advisories/mbedtls-security-advisory-2025-06-2.md","label":"github.com/Mbed-TLS/…","hostname":"github.com","tags":["REPORT","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/08/msg00013.html","label":"lists.debian.org/debian-lts-announce/2025/08/msg00013.html","hostname":"lists.debian.org","tags":[]},{"url":"https://security.alpinelinux.org/vuln/CVE-2025-52497","label":"security.alpinelinux.org/vuln/CVE-2025-52497","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-52497","label":"ubuntu.com/security/CVE-2025-52497","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-52497","label":"www.cve.org/CVERecord?id=CVE-2025-52497","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-8123-1","label":"ubuntu.com/security/notices/USN-8123-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-52497","label":"security-tracker.debian.org/tracker/CVE-2025-52497","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-4274-1","OPENSUSE-SU-2026:21144-1","USN-8123-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:21144-1","USN-8123-1"]},"timeline":[{"kind":"published","date":"2025-07-04T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-11-03T20:05:52.109Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":19,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T06:51:10.698Z","stale":false,"partial":false}}