Skip to content
OpenAdvisories
Critical · 9.8 CVE-2024-45159 EUVD-2024-41339GHSA-cr54-4mf7-rg5v

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 cli…

Published Sep 5, 2024 · Updated Mar 13, 2025 · Assigned by mitre

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).

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Alpine v3.24 mbedtls +1 3.6.1-r0 —
Alpine v3.23 mbedtls 3.6.1-r0 —
Alpine v3.22 mbedtls 3.6.1-r0 —
Alpine v3.21 mbedtls 3.6.1-r0 —
Alpine v3.20 mbedtls 3.6.1-r0 —

References