{"schemaVersion":3,"id":"CVE-2024-45159","aliases":["ALPINE-CVE-2024-45159","UBUNTU-CVE-2024-45159"],"status":"published","duplicateOf":null,"title":null,"description":"An issue was discovered in Mbed TLS 3.x before 3.6.1. With TLS 1.3, when a server enables optional authentication of the client, if the client-provided certificate does not have appropriate values in if keyUsage or extKeyUsage extensions, then the return value of mbedtls_ssl_get_verify_result() would incorrectly have the MBEDTLS_X509_BADCERT_KEY_USAGE and MBEDTLS_X509_BADCERT_KEY_USAGE bits clear. As a result, an attacker that had a certificate valid for uses other than TLS client authentication would nonetheless be able to use it for TLS client authentication. Only TLS 1.3 servers were affected, and only with optional authentication (with required authentication, the handshake would be aborted with a fatal alert).","dates":{"published":"2024-09-05T00:00:00.000Z","modified":"2025-03-13T19:47:36.383Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0039,"percentile":0.31691,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.0039},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0039,"percentile":0.31691}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0039,"percentile":0.31691}]},"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-295","name":"Improper Certificate Validation","description":"The product does not validate, or incorrectly validates, a certificate.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/295.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.1-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.6.1-r0","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}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"trustedfirmware","product":"mbed_tls","name":"mbed tls","label":"mbed_tls","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.2.0, < 3.6.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.2.0, < 3.6.1","eol":null,"hubHref":"/vendor/trustedfirmware/mbed_tls"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://mbed-tls.readthedocs.io/en/latest/security-advisories/","label":"mbed-tls.readthedocs.io/en/latest/security-advisories/","hostname":"mbed-tls.readthedocs.io","tags":["REPORT","Issue Tracking"]},{"url":"https://github.com/Mbed-TLS/mbedtls/releases/","label":"github.com/Mbed-TLS/mbedtls/releases/","hostname":"github.com","tags":["REPORT","Release Notes"]},{"url":"https://mbed-tls.readthedocs.io/en/latest/security-advisories/mbedtls-security-advisory-2024-08-3/","label":"mbed-tls.readthedocs.io/en/latest/security-advisories/mbedtls-security-advisory-2024-08-3/","hostname":"mbed-tls.readthedocs.io","tags":["REPORT","Vendor Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2024-45159","label":"security.alpinelinux.org/vuln/CVE-2024-45159","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-45159","label":"ubuntu.com/security/CVE-2024-45159","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-45159","label":"www.cve.org/CVERecord?id=CVE-2024-45159","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2024-09-05T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-03-13T19:47:36.383Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T20:57:28.326Z","stale":false,"partial":false}}