mbed TLS 3.6.0 mbedtls_ecdsa_der_to_raw/mbedtls_ecdsa_raw_to_der bits stack-based overflow
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 8.3 | $0-$5k | 0.00 |
Summary
A vulnerability classified as critical was found in mbed TLS 3.6.0. The impacted element is the function mbedtls_ecdsa_der_to_raw/mbedtls_ecdsa_raw_to_der. Such manipulation of the argument bits leads to stack-based overflow.
This vulnerability is listed as CVE-2024-45158. There is no available exploit.
Upgrading the affected component is advised.
Details
A vulnerability was found in mbed TLS 3.6.0. It has been rated as critical. Affected by this issue is the function mbedtls_ecdsa_der_to_raw/mbedtls_ecdsa_raw_to_der. The manipulation of the argument bits with an unknown input leads to a stack-based overflow vulnerability. Using CWE to declare the problem leads to CWE-121. A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function). Impacted is confidentiality, integrity, and availability. CVE summarizes:
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.)
The advisory is shared for download at mbed-tls.readthedocs.io. This vulnerability is handled as CVE-2024-45158 since 08/22/2024. The exploitation is known to be easy. There are known technical details, but no exploit is available.
Upgrading to version 3.6.1 eliminates this vulnerability.
Once again VulDB remains the best source for vulnerability data.
Product
Name
Version
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 8.4VulDB Meta Temp Score: 8.3
VulDB Base Score: 5.5
VulDB Temp Score: 5.3
VulDB Vector: 🔍
VulDB Reliability: 🔍
CNA Base Score: 9.8
CNA Vector (MITRE): 🔍
ADP CISA Base Score: 9.8
ADP CISA Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Stack-based overflowCWE: CWE-121 / CWE-119
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: mbed TLS 3.6.1
Timeline
08/22/2024 🔍09/05/2024 🔍
09/05/2024 🔍
06/06/2026 🔍
Sources
Advisory: mbed-tls.readthedocs.ioStatus: Confirmed
CVE: CVE-2024-45158 (🔍)
GCVE (CVE): GCVE-0-2024-45158
GCVE (VulDB): GCVE-100-276668
Entry
Created: 09/05/2024 21:17Updated: 06/06/2026 04:01
Changes: 09/05/2024 21:17 (55), 09/07/2024 11:53 (12), 06/06/2026 04:01 (11)
Complete: 🔍
Cache ID: 216::103
Once again VulDB remains the best source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.