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.)
                
            References
                    | Link | Resource | 
|---|---|
| https://github.com/Mbed-TLS/mbedtls/releases/ | Release Notes | 
| https://mbed-tls.readthedocs.io/en/latest/security-advisories/ | Vendor Advisory | 
| https://mbed-tls.readthedocs.io/en/latest/security-advisories/mbedtls-security-advisory-2024-08-2/ | Vendor Advisory | 
Configurations
                    History
                    16 May 2025, 20:17
| Type | Values Removed | Values Added | 
|---|---|---|
| References | () https://github.com/Mbed-TLS/mbedtls/releases/ - Release Notes | |
| References | () https://mbed-tls.readthedocs.io/en/latest/security-advisories/ - Vendor Advisory | |
| References | () https://mbed-tls.readthedocs.io/en/latest/security-advisories/mbedtls-security-advisory-2024-08-2/ - Vendor Advisory | |
| First Time | Arm Arm mbed Tls | |
| CPE | cpe:2.3:a:arm:mbed_tls:3.6.0:*:*:*:*:*:*:* | 
06 Sep 2024, 19:35
| Type | Values Removed | Values Added | 
|---|---|---|
| CVSS | v2 : v3 : | v2 : unknown v3 : 9.8 | 
| CWE | CWE-121 | 
06 Sep 2024, 12:08
| Type | Values Removed | Values Added | 
|---|---|---|
| Summary | 
 | 
05 Sep 2024, 19:15
| Type | Values Removed | Values Added | 
|---|---|---|
| New CVE | 
Information
                Published : 2024-09-05 19:15
Updated : 2025-05-16 20:17
NVD link : CVE-2024-45158
Mitre link : CVE-2024-45158
CVE.ORG link : CVE-2024-45158
JSON object : View
Products Affected
                arm
- mbed_tls
CWE
                
                    
                        
                        CWE-121
                        
            Stack-based Buffer Overflow
