CVE-2024-45159

Name
CVE-2024-45159
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).
NVD Severity
unknown
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
https://mbed-tls.readthedocs.io/en/latest/security-advisories/
https://github.com/Mbed-TLS/mbedtls/releases/
https://mbed-tls.readthedocs.io/en/latest/security-advisories/mbedtls-security-advisory-2024-08-3/

Match rules

CPE URI Source package Min version Max version
n/a == n/a == n/a
cpe:2.3:a:arm:mbed_tls:*:*:*:*:*:*:*:* mbed_tls >= 3.2.0 < 3.6.1

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
mbedtls edge-main 3.6.1-r0 Natanael Copa <ncopa@alpinelinux.org> fixed
mbedtls 3.22-main 3.6.1-r0 None fixed
mbedtls 3.21-main 3.6.1-r0 None fixed
mbedtls 3.20-main 3.6.1-r0 Natanael Copa <ncopa@alpinelinux.org> fixed