PT-2024-31442 · Mbed Tls · Mbed Tls
Published
2024-09-05
·
Updated
2025-05-16
·
CVE-2024-45158
CVSS v3.1
9.8
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Mbed TLS versions 3.6 through 3.6.0
Description
A stack buffer overflow can occur in
mbedtls ecdsa der to raw() and mbedtls ecdsa raw to der() when the bits parameter is larger than the largest supported curve. In some configurations with PSA disabled, all values of bits are affected. This issue can affect applications that call these functions directly.Recommendations
For Mbed TLS versions 3.6 through 3.6.0, update to version 3.6.1 or later to resolve the issue. As a temporary workaround, consider restricting the use of the
mbedtls ecdsa der to raw() and mbedtls ecdsa raw to der() functions to minimize the risk of exploitation. Avoid using bits parameter values larger than the largest supported curve in these functions until the issue is resolved.Fix
Stack Overflow
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Mbed Tls