mbed TLS 3.6.0 mbedtls_ecdsa_der_to_raw/mbedtls_ecdsa_raw_to_der bits stack-based overflow

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
8.3$0-$5k0.00

Summaryinfo

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.

Detailsinfo

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.

Productinfo

Name

Version

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 8.4
VulDB 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: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Stack-based overflow
CWE: 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-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: mbed TLS 3.6.1

Timelineinfo

08/22/2024 🔍
09/05/2024 +14 days 🔍
09/05/2024 +0 days 🔍
06/06/2026 +639 days 🔍

Sourcesinfo

Advisory: mbed-tls.readthedocs.io
Status: Confirmed

CVE: CVE-2024-45158 (🔍)
GCVE (CVE): GCVE-0-2024-45158
GCVE (VulDB): GCVE-100-276668

Entryinfo

Created: 09/05/2024 21:17
Updated: 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.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to stay up to date on a daily basis?

Enable the mail alert feature now!