← Vulnerability feed

Vulnerability record · CVE-2024-45158 · published 5 September 2024

CVE-2024-45158: Trustedfirmware mbed tls stack-based buffer overflow vulnerability

Trustedfirmware · Mbed Tls

An issue was discovered in Mbed TLS 3.6 before 3.6.1. A stack buffer overflow in mbedtls_ecdsa_der_to_raw() and mbedtls_ecdsa_raw_to_der() can occur when the bits parameter is larger than the largest supported curve. In some configurations with PSA disabled, all values of bits are affected. (This never happens in internal library calls, but can affect applications that call these functions directly.)

9.8 CVSS 3.1 Critical EPSS 0.68% · top 49.4% CWE-121 · Stack-based buffer overflow
9.8CVSS 3.1 base score
0.68%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
3References
17 Jun 2026Last modified by NVD

Description

An issue was discovered in Mbed TLS 3.6 before 3.6.1. A stack buffer overflow in mbedtls_ecdsa_der_to_raw() and mbedtls_ecdsa_raw_to_der() can occur when the bits parameter is larger than the largest supported curve. In some configurations with PSA disabled, all values of bits are affected. (This never happens in internal library calls, but can affect applications that call these functions directly.)

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2024-45158 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2026-34877Arm mbed tls execution with unnecessary privileges vulnerabilityAn issue was discovered in Mbed TLS versions from 2.19.0 up to 3.6.5, Mbed TLS 4.0.0. Insufficient protection of serialized SSL context or session st…EPSS 0.73%9.8CVE-2026-34875Trustedfirmware mbed tls classic buffer overflow vulnerabilityAn issue was discovered in Mbed TLS through 3.6.5 and TF-PSA-Crypto 1.0.0. A buffer overflow can occur in public key export for FFDH keys.EPSS 0.60%9.8CVE-2024-49195Trustedfirmware mbed tls out-of-bounds write vulnerabilityMbed TLS 3.5.x through 3.6.x before 3.6.2 has a buffer underrun in pkwrite when writing an opaque key pairEPSS 0.63%9.8CVE-2024-45159Trustedfirmware mbed tls improper certificate validation vulnerabilityAn 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-provid…EPSS 0.39%9.8CVE-2023-45199Trustedfirmware mbed tls classic buffer overflow vulnerabilityMbed TLS 3.2.x through 3.4.x before 3.5 has a Buffer Overflow that can lead to remote Code execution.EPSS 1.1%9.8CVE-2022-46393Arm mbed tls out-of-bounds read vulnerabilityAn issue was discovered in Mbed TLS before 2.28.2 and 3.x before 3.3.0. There is a potential heap-based buffer overflow and heap-based buffer over-re…EPSS 1.2%9.8CVE-2021-44732Arm mbed tls double free vulnerabilityMbed TLS before 3.0.1 has a double free in certain out-of-memory conditions, as demonstrated by an mbedtls_ssl_set_session() failure.EPSS 2.6%9.1CVE-2026-34873Trustedfirmware mbed tls improper authentication vulnerabilityAn issue was discovered in Mbed TLS 3.5.0 through 4.0.0. Client impersonation can occur while resuming a TLS 1.3 session.EPSS 0.42%

Source: NIST National Vulnerability Database (record CVE-2024-45158), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.