Mbed TLS up to 2.16.10/2.26.x lignum.c mbedtls_mpi_exp_mod risky encryption

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.
3.9$0-$5k0.00

Summaryinfo

A vulnerability, which was classified as problematic, has been found in Mbed TLS up to 2.16.10/2.26.x. The impacted element is the function mbedtls_mpi_exp_mod of the file lignum.c. This manipulation causes risky encryption. This vulnerability appears as CVE-2021-36647. The attack requires local access. There is no available exploit. It is advisable to upgrade the affected component.

Detailsinfo

A vulnerability classified as problematic was found in Mbed TLS up to 2.16.10/2.26.x. Affected by this vulnerability is the function mbedtls_mpi_exp_mod of the file lignum.c. The manipulation with an unknown input leads to a risky encryption vulnerability. The CWE definition for the vulnerability is CWE-327. The product uses a broken or risky cryptographic algorithm or protocol. As an impact it is known to affect confidentiality. The summary by CVE is:

Use of a Broken or Risky Cryptographic Algorithm in the function mbedtls_mpi_exp_mod() in lignum.c in Mbed TLS Mbed TLS all versions before 3.0.0, 2.27.0 or 2.16.11 allows attackers with access to precise enough timing and memory access information (typically an untrusted operating system attacking a secure enclave such as SGX or the TrustZone secure world) to recover the private keys used in RSA.

The weakness was presented 01/18/2023. It is possible to read the advisory at tls.mbed.org. This vulnerability is known as CVE-2021-36647 since 07/12/2021. Technical details of the vulnerability are known, but there is no available exploit. The attack technique deployed by this issue is T1600 according to MITRE ATT&CK.

The vulnerability scanner Nessus provides a plugin with the ID 240979 (Debian dla-4236 : libmbedcrypto3 - security update), which helps to determine the existence of the flaw in a target environment.

Upgrading to version 2.16.11, 2.27.0 or 3.0.0 eliminates this vulnerability. The upgrade is hosted for download at github.com.

The vulnerability is also documented in the vulnerability database at Tenable (240979). Be aware that VulDB is the high quality source for vulnerability data.

Productinfo

Vendor

Name

Version

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 4.0
VulDB Meta Temp Score: 3.9

VulDB Base Score: 2.5
VulDB Temp Score: 2.4
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 4.7
NVD Vector: 🔍

ADP CISA Base Score: 4.7
ADP CISA Vector: 🔍

CVSSv2info

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

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

Exploitinginfo

Class: Risky encryption
CWE: CWE-327 / CWE-310
CAPEC: 🔍
ATT&CK: 🔍

Physical: Partially
Local: Yes
Remote: No

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 240979
Nessus Name: Debian dla-4236 : libmbedcrypto3 - security update

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: TLS 2.16.11/2.27.0/3.0.0

Timelineinfo

07/12/2021 🔍
01/18/2023 +555 days 🔍
01/18/2023 +0 days 🔍
06/06/2026 +1234 days 🔍

Sourcesinfo

Advisory: tls.mbed.org
Status: Confirmed

CVE: CVE-2021-36647 (🔍)
GCVE (CVE): GCVE-0-2021-36647
GCVE (VulDB): GCVE-100-218863

Entryinfo

Created: 01/18/2023 08:06
Updated: 06/06/2026 01:46
Changes: 01/18/2023 08:06 (42), 02/14/2023 19:29 (11), 07/01/2025 04:44 (17), 11/05/2025 15:52 (1), 06/06/2026 01:46 (11)
Complete: 🔍
Cache ID: 216::103

Be aware that VulDB is the high quality source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Might our Artificial Intelligence support you?

Check our Alexa App!